Merge lp:~james-w/pkgme-devportal/package-name-spaces into lp:pkgme-devportal
Proposed by
James Westby
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jonathan Lange | ||||
Approved revision: | 124 | ||||
Merged at revision: | 123 | ||||
Proposed branch: | lp:~james-w/pkgme-devportal/package-name-spaces | ||||
Merge into: | lp:pkgme-devportal | ||||
Diff against target: |
133 lines (+44/-7) 4 files modified
devportalbinary/acceptance/data/package_name_with_spaces/devportal-metadata.json (+4/-0) devportalbinary/acceptance/tests/__init__.py (+18/-0) devportalbinary/metadata.py (+9/-5) devportalbinary/tests/test_metadata.py (+13/-2) |
||||
To merge this branch: | bzr merge lp:~james-w/pkgme-devportal/package-name-spaces | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange | Approve | ||
Review via email: mp+124701@code.launchpad.net |
Commit message
Use the cleaned package name to avoid spaces etc. in filenames.
Description of the change
Hi,
This fixes a bug that John found where packages fail to build because
they have spaces in the paths.
We were using the raw PackageName produced by the backend, but pkgme
does some futzing with the package name to remove spaces and stuff.
We therefore "clean" the package name before we use it to ensure we
are using the final package name.
Thanks,
James
To post a comment you must log in.
Thanks. Glad it's such a simple fix.
That said, I don't think this will fix bad filenames that come from get_extra_ files_from_ paths.
jml