aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-17 20:38:34 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-17 20:38:34 +0000
commit1e5ce05a28a918e267febed063d7cb58bc950114 (patch)
tree80b1944b21cabd0816912d0d8355f78e0427d103 /URPM.xs
parentb1898dc866698d8e103b4b24a635c161dd93ac65 (diff)
downloadperl-URPM-1e5ce05a28a918e267febed063d7cb58bc950114.tar
perl-URPM-1e5ce05a28a918e267febed063d7cb58bc950114.tar.gz
perl-URPM-1e5ce05a28a918e267febed063d7cb58bc950114.tar.bz2
perl-URPM-1e5ce05a28a918e267febed063d7cb58bc950114.tar.xz
perl-URPM-1e5ce05a28a918e267febed063d7cb58bc950114.zip
(Pkg_buildarchs) simplify now that all remaining aliases use xpush_simple_list_str()
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs33
1 files changed, 17 insertions, 16 deletions
diff --git a/URPM.xs b/URPM.xs
index 8539cf3..0311b6d 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2079,33 +2079,34 @@ Pkg_buildarchs(pkg)
files_md5sum = 6
files_owner = 7
files_group = 8
- files_flags = 14
- changelog_name = 17
- changelog_text = 18
+ changelog_name = 9
+ changelog_text = 10
PPCODE:
PUTBACK;
+ rpmTag tag;
switch (ix) {
- case 0:
- xpush_simple_list_str(pkg->h, RPMTAG_BUILDARCHS); break;
case 1:
- xpush_simple_list_str(pkg->h, RPMTAG_EXCLUDEARCH); break;
+ tag = RPMTAG_EXCLUDEARCH; break;
case 2:
- xpush_simple_list_str(pkg->h, RPMTAG_EXCLUSIVEARCH); break;
+ tag = RPMTAG_EXCLUSIVEARCH; break;
case 3:
- xpush_simple_list_str(pkg->h, RPMTAG_DIRNAMES); break;
+ tag = RPMTAG_DIRNAMES; break;
case 4:
- xpush_simple_list_str(pkg->h, RPMTAG_FILELINKTOS); break;
+ tag = RPMTAG_FILELINKTOS; break;
case 6:
- xpush_simple_list_str(pkg->h, RPMTAG_FILEMD5S); break;
+ tag = RPMTAG_FILEMD5S; break;
case 7:
- xpush_simple_list_str(pkg->h, RPMTAG_FILEUSERNAME); break;
+ tag = RPMTAG_FILEUSERNAME; break;
case 8:
- xpush_simple_list_str(pkg->h, RPMTAG_FILEGROUPNAME); break;
- case 17:
- xpush_simple_list_str(pkg->h, RPMTAG_CHANGELOGNAME); break;
- case 18:
- xpush_simple_list_str(pkg->h, RPMTAG_CHANGELOGTEXT); break;
+ tag = RPMTAG_FILEGROUPNAME; break;
+ case 9:
+ tag = RPMTAG_CHANGELOGNAME; break;
+ case 10:
+ tag = RPMTAG_CHANGELOGTEXT; break;
+ default:
+ tag = RPMTAG_BUILDARCHS; break;
}
+ xpush_simple_list_str(pkg->h, tag);
SPAGAIN;
void