On Thu, 30 Jun 2011, Stéphane Graber wrote:
>       if ($generate{keep})
>       {
> -         my $target = "$DPKG/info/$pack.md5sums";
> -         copy $sums, $target
> -             or die "$self: can't copy sums to $target ($!)\n";
> +         @sumfiles = glob("$DPKG/info/$pack.md5sums 
> $DPKG/info/$pack:*.md5sums");
> +         foreach(@sumfiles) {
> +                 copy $sums, $_
> +                     or die "$self: can't copy sums to $_ ($!)\n";
> +         }

This looks entirely wrong. debsums generate a md5sums when the package
doesn't provide a md5sums files... so the glob can't return anything.

And it's this part that I suggested to get rid of entirely, because
you're not qualified to know whether it should be "$p.md5sums or
"$p:$arch.md5sums". Ideally you should store those in a debsums specific
directory and use "$p:$arch" unconditionnaly.

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

Reply via email to