diff options
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 |