members of subdirs sources.list.d and trusted.gpg.d and extra-files are not restored

Bug #1753091 reported by Jan Berghoff-Flüel
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-clone (Ubuntu)
New
Undecided
Unassigned

Bug Description

The members of the subdirectories "etc/apt/sources.list.d" and "etc/apt/trusted.gpg.d" are not restored cause the python method "tarfile.extract()" only extracts the given member from the tar file, which is only the (empty) directory itself but not recursively the members of the directory.

Though the recursive extraction/restore of a directory has been correctly implemented for "var/lib/apt-clone/debs/" using tarfile.extractall(), it seems that is has been forgotten for the two directories mentioned above.

Furthermore there is a bug (missing trailing slash in the "extra-files" prefix string) preventing the extra files (specified with --extra-files option) from being restored.

Please find attached patch for apt_clone.py fixing the bugs.

Tags: patch
Revision history for this message
Jan Berghoff-Flüel (janbf) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "apt_clone.py.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.