Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > contrib-backports-src > by-pkgid > 76c703a1e5f5cb31b0a6e8d362f2f2cd > files > 2

alien-8.78-1mdv2009.1.src.rpm

--- ./Alien/Package/Deb.pm.tv	2009-05-13 16:08:03.000000000 +0200
+++ ./Alien/Package/Deb.pm	2009-05-13 16:16:41.000000000 +0200
@@ -211,7 +211,9 @@
 	# Note that tar doesn't supply a leading '/', so we have to add that.
 	my @filelist;
 	if ($this->have_dpkg_deb) {
-		@filelist=map { chomp; s:\./::; "/$_" }
+		require MDK::Common;
+		@filelist = grep { !MDK::Common::member($_, qw(/ /usr/ /usr/bin/ /usr/lib/ /usr/share/ /usr/share/doc/ /usr/share/applications/)) }
+                  map { chomp; s:\./::; "/$_" }
 			  $this->runpipe(0, "dpkg-deb --fsys-tarfile $file | tar tf -");
 	}
 	else {