Package: dpkg-repack
Version: 1.34
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch



*** /tmp/tmpMDNJs3

Please check the attached patch by Evan Dandresa that fixes the use
of dpkg-query when a different rootdir is used.

Thanks for considering the patch.

Cheers,
 Michael

-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 
'natty-proposed'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-8-generic (SMP w/4 CPU cores)
Locale: LANG=en_DK.utf8, LC_CTYPE=en_DK.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru dpkg-repack-1.34/dpkg-repack dpkg-repack-1.34ubuntu1/dpkg-repack
--- dpkg-repack-1.34/dpkg-repack	2011-03-02 20:15:31.000000000 +0100
+++ dpkg-repack-1.34ubuntu1/dpkg-repack	2011-05-02 12:50:15.000000000 +0200
@@ -275,7 +275,7 @@
 }
 
 foreach $packagename (@ARGV) {
-	open (Q, "dpkg-query --control-path $packagename 2>/dev/null |") || die "dpkg-query failed: $!";
+	open (Q, "dpkg-query --admindir=$rootdir/var/lib/dpkg --control-path $packagename 2>/dev/null |") || die "dpkg-query failed: $!";
 	while (my $fn=<Q>) {
 		chomp $fn;
 		push @control_files, $fn;

Reply via email to