aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-12-09 19:40:02 +0000
committerFrancois Pons <fpons@mandriva.com>2003-12-09 19:40:02 +0000
commit050622c35226e11ed6f1896777b37e479f6dad94 (patch)
tree1b6aeac3037d0dd3e5560cb216bb49e13c65e6f3 /URPM.xs
parent6f1934d7f1c38db5fbf9d9b23178d60b606b94d3 (diff)
downloadperl-URPM-050622c35226e11ed6f1896777b37e479f6dad94.tar
perl-URPM-050622c35226e11ed6f1896777b37e479f6dad94.tar.gz
perl-URPM-050622c35226e11ed6f1896777b37e479f6dad94.tar.bz2
perl-URPM-050622c35226e11ed6f1896777b37e479f6dad94.tar.xz
perl-URPM-050622c35226e11ed6f1896777b37e479f6dad94.zip
added support for RH 7.3
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs6
1 files changed, 4 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 60f5549..464aa4d 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -656,12 +656,12 @@ return_list_uint_16(Header header, int_32 tag_name) {
void
return_list_tag_modifier(Header header, int_32 tag_name) {
dSP;
+ int i;
int_32 *list;
int_16 *list16;
int_32 count, type;
headerGetEntry(header, tag_name, &type, (void **) &list, &count);
- int i;
for (i=0; i<count; i++) {
char *buff[15];
char *s= buff;
@@ -671,14 +671,16 @@ return_list_tag_modifier(Header header, int_32 tag_name) {
if (list[i] & RPMFILE_DOC) *s++ = 'd';
if (list[i] & RPMFILE_GHOST) *s++ = 'g';
if (list[i] & RPMFILE_LICENSE) *s++ = 'l';
- if (list[i] & RPMFILE_ICON) *s++ = 'i';
if (list[i] & RPMFILE_MISSINGOK) *s++ = 'm';
if (list[i] & RPMFILE_NOREPLACE) *s++ = 'n';
if (list[i] & RPMFILE_SPECFILE) *s++ = 'S';
if (list[i] & RPMFILE_README) *s++ = 'R';
if (list[i] & RPMFILE_EXCLUDE) *s++ = 'e';
+#ifdef RPM_42
+ if (list[i] & RPMFILE_ICON) *s++ = 'i';
if (list[i] & RPMFILE_UNPATCHED) *s++ = 'u';
if (list[i] & RPMFILE_PUBKEY) *s++ = 'p';
+#endif
break;
default:
return;