Merge lp:~brian-murray/apt-clone/specify-mirror into lp:apt-clone
Proposed by
Brian Murray
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 146 | ||||
Proposed branch: | lp:~brian-murray/apt-clone/specify-mirror | ||||
Merge into: | lp:apt-clone | ||||
Diff against target: |
92 lines (+24/-5) 4 files modified
apt-clone (+3/-1) apt_clone.py (+12/-3) debian/changelog (+8/-0) debian/tests/control (+1/-1) |
||||
To merge this branch: | bzr merge lp:~brian-murray/apt-clone/specify-mirror | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt (community) | Approve | ||
Martin Pitt | Needs Fixing | ||
Review via email: mp+210441@code.launchpad.net |
Description of the change
I regularly edit the apt-clone files from bug reports to use my mirror and this seemed like an easier way to accomplish that. I neglected to think about needing to have this change in Precise and Saucy for it to be really useful, but still this'll help sometime in the future.
To post a comment you must log in.
This breaks a test:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= state_on_ new_distro_ release_ livecd (__main_ _.TestClone) ------- ------- ------- ------- ------- ------- ------- ------- ------- python3/ dist-packages/ mock.py" , line 1210, in patched state_on_ new_distro_ release_ livecd _restore_ sources_ list(statefile, targetdir, mirror) sources_ list python3/ dist-packages/ aptsources/ sourceslist. py", line 415, in save source. file] = open(source.file, "w") sources. list.d/ autopkgtest. list'
ERROR: test_restore_
-------
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **keywargs)
File "test_clone.py", line 142, in test_restore_
"maverick")
File "../apt_clone.py", line 470, in restore_state
self.
File "../apt_clone.py", line 526, in _restore_
sources.save()
File "/usr/lib/
files[
PermissionError: [Errno 13] Permission denied: '/etc/apt/
Apparently that doesn't get along with the test sandbox?