Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 768f6d8860560282f957829e74354467 > files > 2

alien-8.79-2mdv2010.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 {