diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-08 23:57:19 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-09 15:38:54 -0500 |
commit | 40ea6cd607d5edb2699c084259b237d435313670 (patch) | |
tree | 65ad9091896b4603d5008a38e68518b3bcfe87ef /lib/libalpm/deps.c | |
parent | 9d3d647f0031edd31fc7442f9d2cd9729718e41c (diff) | |
download | pacman-40ea6cd607d5edb2699c084259b237d435313670.tar.xz |
Depend on name_hash being set
This is a fairly valid assumption at this point, or at least as good of
one as assuming packages all have names.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r-- | lib/libalpm/deps.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index c3681b34..aef66d2d 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -373,8 +373,7 @@ int _alpm_depcmp(alpm_pkg_t *pkg, alpm_depend_t *dep) int satisfy = 0; /* check (pkg->name, pkg->version) */ - if(pkg->name_hash && dep->name_hash - && pkg->name_hash != dep->name_hash) { + if(pkg->name_hash != dep->name_hash) { /* skip more expensive checks */ } else { satisfy = (strcmp(pkg->name, dep->name) == 0 |