Package: multistrap
Version: 2.1.20
Severity: normal
Tags: patch

After downloading and unpacking, multistrap deletes *all* files in
${target}/etc/apt/sources.list.d in order to delete the files
specifying the sources from which it downloaded. This inadvertently
deletes any source lists added by the packages that were just
unpacked.

The following patch limits the lists deleted to only those added by
multistrap itself.

--- a/multistrap
+++ b/multistrap
@@ -427,7 +427,7 @@ unlink 
("${dir}etc/apt/sources.list.d/multistrap.sources.list")
        if (-f "${dir}etc/apt/sources.list.d/multistrap.sources.list");
 opendir (LISTS, "${dir}etc/apt/sources.list.d/")
        or die (_g("Cannot read apt sources list directory.\n"));
-my @sources=grep(!m:\.\.?$:, readdir LISTS);
+my @sources=grep(m:^multistrap-.*\.list$:, readdir LISTS);
 closedir (LISTS);
 foreach my $filelist (@sources) {
        next if (-d $filelist);


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages multistrap depends on:
ii  apt                            0.9.7.7
ii  libconfig-auto-perl            0.42-1
ii  liblocale-gettext-perl         1.05-7+b1
ii  libparse-debian-packages-perl  0.03-1
ii  perl                           5.14.2-18

Versions of packages multistrap recommends:
ii  emdebian-archive-keyring  2.0.3

Versions of packages multistrap suggests:
ii  fakeroot  1.18.4-2

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to