diff options
-rw-r--r-- | URPM.xs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |