Re: resurrecting srcpac

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



On Sat, 24 May 2008 20:52:23 +0200
Michael Klier <chi@xxxxxxxxxxx> wrote:

> Aaron Griffin wrote:
> > 
> > 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 :)!

Don't forget the 'any' arch!



[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