[Slackbuilds-users] Updates - 20120507.1
rworkman at slackbuilds.org
Tue May 8 01:31:23 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 07 May 2012 20:12:53 -0500
Nishant Limbachia <nishant at mnspace.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On 05/07/2012 12:32 PM, Erik Hanson wrote:
> > Mon May 7 17:20:21 UTC 2012 perl/perl-NetAddr-IP: Updated for
> > version 4.059.
> Hi Admins,
> There seems to be an issue with SRCNAM variable in perl-NetAddr-IP
> update that got posted today.
> SRCNAM=$(echo $PRGNAM | cut -f2 -d-)
> truncates the program name and the build fails.
> Please change this to the way I submitted:
No, we prefer PRGNAM in the build script and the .info file
to be the same - granted, it's only really for the sake of
automated tools and such, but it's not too much trouble to
keep them in sync.
The right way to do that would be this:
SRCNAM=$(printf $PRGNAM | cut -d- -f2-)
Note the "-" after "2" to grab field 2 and any later ones.
("echo" is certainly acceptable instead of "printf" though)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the SlackBuilds-users