Re: [Pkgutil-users] bldcat problem when packages are renamed
Status: Beta
Brought to you by:
bonivart
|
From: Peter B. <bon...@op...> - 2010-12-02 16:00:55
|
On Thu, Nov 25, 2010 at 6:04 PM, Mark R Bannister
<ma...@pr...> wrote:
> Hi Peter,
>
> I have a problem with r322. It doesn't cope very well with GPG signed catalog files:
>
> I get - "Use of uninitialized value $hash in hash element" errors.
>
> Suggest, instead of:
>
> my $hash = $line[4];
> $oldcatalog{$hash} = \@line;
> my $pkgfile = $line[3];
> $oldcatalog_bypkgfile{$pkgfile} = \@line;
>
> You do:
>
> if (scalar(@line) >= 8) {
> my $hash = $line[4];
> $oldcatalog{$hash} = \@line;
> my $pkgfile = $line[3];
> $oldcatalog_bypkgfile{$pkgfile} = \@line;
> }
I used this and added a check for the line to start with a word class
character. I tested some with the official catalogs and it completely
skipped all GPG lines.
http://pkgutil.svn.sourceforge.net/viewvc/pkgutil/trunk/bldcat?revision=324
Since my testing was limited to removing the error messages I would
appreciate it if you (or someone else on the list) could help test the
latest revision for actually creating catalogs.
/peter
|