Merge ~alexmurray/ubuntu-cve-tracker:fix-packages-mirror-context-handling-to-fix-source-map-cache-generation into ubuntu-cve-tracker:master
Proposed by
Alex Murray
Status: | Merged |
---|---|
Merged at revision: | 5fd4465fa32923d45e03c6f6aa9c2a5a79319821 |
Proposed branch: | ~alexmurray/ubuntu-cve-tracker:fix-packages-mirror-context-handling-to-fix-source-map-cache-generation |
Merge into: | ubuntu-cve-tracker:master |
Diff against target: |
46 lines (+7/-1) 2 files modified
.launchpad.yaml (+1/-0) scripts/packages-mirror (+6/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Beattie | Approve | ||
Review via email: mp+465985@code.launchpad.net |
Commit message
scripts/
Previously packages-mirror would cd to the "$debianPath" in some cases but would
then fail to restore the working directory - as such the resulting
gen-source-
never be generated. So use pushd/popd to avoid this rather than cd. Also whilst
debugging this it was also found that in one case packages-mirror would
overwrite the value of "$verbosity_args" and not restore it, so make sure this
is also restored to respect the users use of -v or not.
Signed-off-by: Alex Murray <email address hidden>
To post a comment you must log in.
Ack, thanks, pushd/popd are bashisms, but the script is already bash-specific so no harm there.