diff options
author | Michael Schroeder <mls@suse.de> | 2012-04-23 11:04:02 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-04-23 11:04:02 +0300 |
commit | db28221a4a48f6ee3c804c92314330637c808638 (patch) | |
tree | 46fd4d1866729a65ba419c74668276551e27e96d /build/parseReqs.c | |
parent | 4935f4853227d3981ba86d5557ae36704a1f67f2 (diff) | |
download | librpm-tizen-db28221a4a48f6ee3c804c92314330637c808638.tar.gz librpm-tizen-db28221a4a48f6ee3c804c92314330637c808638.tar.bz2 librpm-tizen-db28221a4a48f6ee3c804c92314330637c808638.zip |
Add support for dpkg-style sorting of tilde in version/release
- This allows much nicer handling some common scenarios such as
upstream pre-releases where the pre-release version would normally
appear newer than final release, eg 1.0-rc1 vs 1.0. Previously this
required mapping the pre-release tag into the release tag to achieve
desired sorting, with tild this becomes simply 1.0~rc1 < 1.0.
- Add a rpmlib() tracking dependency to prevent older rpm versions
from getting confused with packages relying on the new behavior.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Diffstat (limited to 'build/parseReqs.c')
-rw-r--r-- | build/parseReqs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/parseReqs.c b/build/parseReqs.c index de2680cca..5ad0501e4 100644 --- a/build/parseReqs.c +++ b/build/parseReqs.c @@ -156,7 +156,7 @@ rpmRC parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTagVal tagN, } EVR = xmalloc((ve-v) + 1); rstrlcpy(EVR, v, (ve-v) + 1); - if (rpmCharCheck(spec, EVR, ve-v, ".-_+:%{}")) goto exit; + if (rpmCharCheck(spec, EVR, ve-v, ".-_+:%{}~")) goto exit; re = ve; /* ==> next token after EVR string starts here */ } else EVR = NULL; |