aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-25 18:20:07 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-25 18:20:07 +0000
commit8928ee9cbf079cfe4d3879752d1703339b4c37a1 (patch)
tree7e71a91c513a2896197d9c2fe2e9ee356736ca00 /URPM.xs
parent0a22ad25bcb7f0aaca19d3f85affc52034e2a766 (diff)
downloadperl-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.xs13
1 files changed, 0 insertions, 13 deletions
diff --git a/URPM.xs b/URPM.xs
index b44e1de..1873cc2 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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