diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -509,8 +509,7 @@ return_list_tag_modifier(Header header, int32_t tag_name) { for (i = 0; i < count; i++) { char buff[15]; char *s = buff; - switch (tag_name) { - case RPMTAG_FILEFLAGS: + if (tag_name == RPMTAG_FILEFLAGS) { if (list[i] & RPMFILE_CONFIG) *s++ = 'c'; if (list[i] & RPMFILE_DOC) *s++ = 'd'; if (list[i] & RPMFILE_GHOST) *s++ = 'g'; @@ -523,8 +522,7 @@ return_list_tag_modifier(Header header, int32_t tag_name) { if (list[i] & RPMFILE_ICON) *s++ = 'i'; if (list[i] & RPMFILE_UNPATCHED) *s++ = 'u'; if (list[i] & RPMFILE_PUBKEY) *s++ = 'p'; - break; - default: + } else { rpmtdFreeData(&td); return; } |