diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-25 18:20:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-25 18:20:07 +0000 |
commit | 8928ee9cbf079cfe4d3879752d1703339b4c37a1 (patch) | |
tree | 7e71a91c513a2896197d9c2fe2e9ee356736ca00 /URPM.xs | |
parent | 0a22ad25bcb7f0aaca19d3f85affc52034e2a766 (diff) | |
download | perl-URPM-8928ee9cbf079cfe4d3879752d1703339b4c37a1.tar perl-URPM-8928ee9cbf079cfe4d3879752d1703339b4c37a1.tar.gz perl-URPM-8928ee9cbf079cfe4d3879752d1703339b4c37a1.tar.bz2 perl-URPM-8928ee9cbf079cfe4d3879752d1703339b4c37a1.tar.xz perl-URPM-8928ee9cbf079cfe4d3879752d1703339b4c37a1.zip |
do not strip away arch if specifed for Trans_remove() (POK, mdv)
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -2545,19 +2545,7 @@ Trans_remove(trans, name) Header h; rpmdbMatchIterator mi; int count = 0; - char *boa = NULL, *bor = NULL; CODE: - /* hide arch in name if present */ - if ((boa = strrchr(name, '.'))) { - *boa = 0; - if ((bor = strrchr(name, '-'))) { - *bor = 0; - if (!strrchr(name, '-')) - *boa = '.'; boa = NULL; - *bor = '-'; bor = NULL; - } else - *boa = '.'; boa = NULL; - } mi = rpmtsInitIterator(trans->ts, RPMDBI_LABEL, name, 0); while ((h = rpmdbNextIterator(mi))) { unsigned int recOffset = rpmdbGetIteratorOffset(mi); @@ -2567,7 +2555,6 @@ Trans_remove(trans, name) } } rpmdbFreeIterator(mi); - if (boa) *boa = '.'; RETVAL=count; OUTPUT: RETVAL |