Re: pacman version string regex?

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



On Fri, Jul 3, 2009 at 6:58 PM, clemens
fischer<ino-news@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> is there a regular expression describing the version comparison
> algorithm in pacman/lib/libalpm/package.c::alpm_pkg_vercmp()?
>
> I have a pacman wrapper (bash script) that needs to determine the
> package name to give to pacman given a directory name, because it is
> possible to give globs to filenames, but not to pacman.  I cannot use
> "pacman -[QS]s <string>", because sometimes I want to glob just package
> names, not descriptions.
>
> So basically I don't want the actual version comparison, only the
> removal of the version suffix including our release number.
>
>

Could you give an example of what you are trying to do?


[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