Re: resurrecting srcpac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux