On Sun, 21 Aug 2011, Anders Kaseorg wrote: > I return the path of an .md5sums file if the corresponding .list file > exists. That should be fine for installed packages even if they have no > .md5sums file, and debsums only works on installed packages.
Oh, right, I misread. Should be good then. > + my ($path) = @_; > + if (-e "$DPKG/info/$path.list") { > + return "$DPKG/info/$path.md5sums"; > + } elsif ($path !~ /:/ and -e "$DPKG/info/$path:$arch.list") { > + return "$DPKG/info/$path:$arch.md5sums"; This elsif is probably useless, if we have a pkg:arch.list file it means we have a multiarchified dpkg and it should support PackageSpec so we will get the correct path from the start. > + } elsif ($path =~ /^(.*):/ and -e "$DPKG/info/$1.list") { > + return "$DPKG/info/$1.md5sums"; > + } else { > + die "Cannot find md5sums path for $path\n"; > + } > +} Cheers, -- Raphaël Hertzog ◈ Debian Developer Follow my Debian News ▶ http://RaphaelHertzog.com (English) ▶ http://RaphaelHertzog.fr (Français) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org