Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize the paths of all files, avoiding duplicate misses of directories #16

Merged

Conversation

mauritsvanrees
Copy link
Contributor

For example with Products.PloneHelpCenter I get this report, where in all cases the directories are there and have a file in them:

missing from VCS:
Products/PloneHelpCenter/profiles/default/workflows/helpcenter_workflow/
Products/PloneHelpCenter/profiles/default/workflows/helpcenterfolder_workflow/
Products/PloneHelpCenter/profiles/default/workflows/helpcentersubitem_workflow/
missing from sdist:
Products/PloneHelpCenter/profiles/default/workflows/helpcenter_workflow
Products/PloneHelpCenter/profiles/default/workflows/helpcenterfolder_workflow
Products/PloneHelpCenter/profiles/default/workflows/helpcentersubitem_workflow

…irectories.

For example with Products.PloneHelpCenter (on github) I get this
report, where in all cases the directories are there and have a file
in them:

missing from VCS:
  Products/PloneHelpCenter/profiles/default/workflows/helpcenter_workflow/
  Products/PloneHelpCenter/profiles/default/workflows/helpcenterfolder_workflow/
  Products/PloneHelpCenter/profiles/default/workflows/helpcentersubitem_workflow/
missing from sdist:
  Products/PloneHelpCenter/profiles/default/workflows/helpcenter_workflow
  Products/PloneHelpCenter/profiles/default/workflows/helpcenterfolder_workflow
  Products/PloneHelpCenter/profiles/default/workflows/helpcentersubitem_workflow
@coveralls
Copy link

Coverage Status

Coverage increased (+0.75%) when pulling 4183999 on mauritsvanrees:maurits-fix-missing-directories into 56b432b on mgedmin:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.75%) when pulling 3bdd0c6 on mauritsvanrees:maurits-fix-missing-directories into 56b432b on mgedmin:master.

@mgedmin
Copy link
Owner

mgedmin commented Sep 20, 2013

Looks good to me.

It would be enough to change get_archive_file_list() to do

        with tarfile.open(archive_filename) as tf:
            # Sometimes directory names in tar files have trailing slashes,
            # and sometimes they don't.  Sometimes you get both in the same
            # archive.
            return strip_slashes(tf.getnames())

but, on the other hand, always using normalize_names() won't hurt and might help some untested future use cases, like someone trying to run check-manifest on Windows.

mgedmin added a commit that referenced this pull request Sep 20, 2013
…ories

Normalize the paths of all files, avoiding duplicate misses of directories
@mgedmin mgedmin merged commit c3c09a8 into mgedmin:master Sep 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants