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

Fix name clashes in package extraction #2102

Merged
merged 2 commits into from Jan 1, 2016
Merged

Fix name clashes in package extraction #2102

merged 2 commits into from Jan 1, 2016

Conversation

reavowed
Copy link
Contributor

Prevent extraction failing if a package archive contains a file with the same name as the archive, or a single directory with a subdirectory with the same name.

The former was picked up from a TODO in the codebase, the latter from #1935.

Prevent extraction failing if a package archive contains a file with
the same name as the archive, or a single directory with a subdirectory
with the same name.

// Create an archive containing the main package
var archiveDeferred = Q.defer();
var archivePath = path.join(parentDir, mainPackageBaseName + ".tar")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a semi colon here

@Utsav2
Copy link
Contributor

Utsav2 commented Dec 14, 2015

Make sure to do npm test before pushing, which will run jscs and jshint for you.

Add missing semicolons to test file.
al3rez pushed a commit that referenced this pull request Jan 1, 2016
Fix name clashes in package extraction
@al3rez al3rez merged commit 9c42a00 into bower:master Jan 1, 2016
@reavowed reavowed deleted the fix-extract-name-clashes branch December 12, 2016 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants