aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
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