Fix corner-case behavior on dependency matching when release not present
authorMichael Schroeder <mls@suse.de>
Tue, 15 Feb 2011 12:55:55 +0000 (14:55 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 15 Feb 2011 12:55:55 +0000 (14:55 +0200)
commit82347dc881c68107dd81e1789761e7514b429000
tree78d5cdaffe1348dd5af943c687db2131f5ed0e2b
parent81acadbf1f55d128d733b5d9552276b4679ac682
Fix corner-case behavior on dependency matching when release not present
- The idea behind the patch is that a missing release is handled
  as "all/any release". Nothing changes for "foo < 1.2" or
  "foo > 1.2", it still just compares the version. But "foo = 1.2"
  means "everything with version 1.2". Thus, any match against
  a package with version "1.2" a any non-empty release must
  return true.
- Update test-suite expectations to the new behavior.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
lib/rpmds.c
tests/rpmdepmatch.at