diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2007-11-18 19:05:47 +0100 |
---|---|---|
committer | Chantry Xavier <shiningxc@gmail.com> | 2008-02-06 08:46:15 +0100 |
commit | 05d56349588665da7ed01eaa3337be7ece35fd2f (patch) | |
tree | 543482dd5565b8d1dd882bec2fd5d47ef83938aa /pactest/tests/sync901.py | |
parent | e63366ae5e701d8e9ae33144f68e8786b092a468 (diff) | |
download | pacman-05d56349588665da7ed01eaa3337be7ece35fd2f.tar.gz pacman-05d56349588665da7ed01eaa3337be7ece35fd2f.tar.xz |
libalpm/package.c : add _alpm_pkgname_pkg_cmp function.
_alpm_pkgname_pkg_cmp(pkgname, pkg) returns true iff pkg's name is pkgname.
This is useful if you want to remove a package from pmpkg_t* list, and you
want to search for package name.
This allows cleaning the -Ru code a bit, by removing the need of a dummy
pkg.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'pactest/tests/sync901.py')
0 files changed, 0 insertions, 0 deletions