Skip to content

Commit

Permalink
Fix for the txz package name parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Jirman committed Jun 12, 2009
1 parent 8ce0409 commit 513c442
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/misc.c
Expand Up @@ -35,6 +35,7 @@ gchar* parse_pkgname(const gchar* path, guint elem)
guint suffix_len =
g_str_has_suffix(path, ".tgz") ||
g_str_has_suffix(path, ".tlz") ||
g_str_has_suffix(path, ".txz") ||
g_str_has_suffix(path, ".tar") ? 4 : 0;
name = g_strndup(tmp, strlen(tmp) - suffix_len);
/* 3 dashes required */
Expand Down

0 comments on commit 513c442

Please sign in to comment.