[Bug 1753091] Re: members of subdirs sources.list.d and trusted.gpg.d and extra-files are not restored

Ubuntu Foundations Team Bug Bot 1753091 at bugs.launchpad.net
Sat Mar 3 16:20:07 UTC 2018


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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt-clone in Ubuntu.
https://bugs.launchpad.net/bugs/1753091

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

Status in apt-clone package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-clone/+bug/1753091/+subscriptions



More information about the foundations-bugs mailing list