[arch-general] resurrecting srcpac

Aaron Griffin aaronmgriffin at gmail.com
Sat May 24 15:45:22 EDT 2008


On Sat, May 24, 2008 at 2:30 PM, Loui <louipc.ist at gmail.com> wrote:
> On Sat, 24 May 2008 20:52:23 +0200
> Michael Klier <chi at chimeric.de> 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!

Very true! The DB scripts don't support the 'any' arch just yet, so
the above works for them.




More information about the arch-general mailing list