aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs5
1 files changed, 5 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 90817da..960b225 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -174,6 +174,11 @@ get_fullname_parts(URPM__Package pkg, char **name, char **version, char **releas
tmp = _eos;
}
} while(!distepoch && _eos != NULL);
+ /* XXX: filename at end of line, don't bother to support it, just make sure
+ * for it not to cause crash...
+ */
+ if ((tmp = strrchr(pkg->info, '.')) && !strcmp(tmp, ".rpm"))
+ distepoch = 0;
}
if ((_eos = strchr(pkg->info, '@')) != NULL) {