[arch-general] resurrecting srcpac
Michael Klier
chi at chimeric.de
Sat May 24 14:52:23 EDT 2008
Aaron Griffin wrote:
> > Alrighty, mostly a couple questions:
> >
> > Would it be an idea to build as the original users who ran srcpac? I
> > guess if you use sudo, that won't quite work... you'd need something
> > pointing back to that user...
> >
> > I'm a little confused why ${i-*-*-*} doesn't work in all cases. What
> > are you trying to fix with the perl code?
>
> The DB scripts actually do it this way:
>
> getpkgname() {
> local tmp
>
> tmp=${1##*/}
> tmp=${tmp%$PKGEXT}
> tmp=${tmp%-$CARCH}
> echo ${tmp%-*-*}
> }
Aaahh ok, there's always a better/correct solution :)!
Michael
--
Michael Klier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://archlinux.org/pipermail/arch-general/attachments/20080524/48e119f4/attachment.pgp>
More information about the arch-general
mailing list