aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-05-23 11:40:58 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-09-30 18:24:43 +0200
commit1756bd8b8bc477a5791cbe8c5ddf19176ed8adf5 (patch)
treeeaf947ce452ff5f307490214ea86a558e060ccad
parent1c950dc919ef7d773e81eae7e32808c9370c321b (diff)
downloadperl-URPM-1756bd8b8bc477a5791cbe8c5ddf19176ed8adf5.tar
perl-URPM-1756bd8b8bc477a5791cbe8c5ddf19176ed8adf5.tar.gz
perl-URPM-1756bd8b8bc477a5791cbe8c5ddf19176ed8adf5.tar.bz2
perl-URPM-1756bd8b8bc477a5791cbe8c5ddf19176ed8adf5.tar.xz
perl-URPM-1756bd8b8bc477a5791cbe8c5ddf19176ed8adf5.zip
(sourcerpm) make it more readable
-rw-r--r--URPM.xs24
1 files changed, 8 insertions, 16 deletions
diff --git a/URPM.xs b/URPM.xs
index 6b56f66..b3b83e0 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1550,22 +1550,14 @@ Pkg_sourcerpm(pkg)
if (pkg->h) {
rpmTag tag;
switch (ix) {
- case 1:
- tag = RPMTAG_BUILDHOST; break;
- case 2:
- tag = RPMTAG_URL; break;
- case 3:
- tag = RPMTAG_LICENSE; break;
- case 4:
- tag = RPMTAG_DISTRIBUTION; break;
- case 5:
- tag = RPMTAG_VENDOR; break;
- case 6:
- tag = RPMTAG_OS; break;
- case 7:
- tag = RPMTAG_PAYLOADFORMAT; break;
- default:
- tag = RPMTAG_SOURCERPM; break;
+ case 1: tag = RPMTAG_BUILDHOST; break;
+ case 2: tag = RPMTAG_URL; break;
+ case 3: tag = RPMTAG_LICENSE; break;
+ case 4: tag = RPMTAG_DISTRIBUTION; break;
+ case 5: tag = RPMTAG_VENDOR; break;
+ case 6: tag = RPMTAG_OS; break;
+ case 7: tag = RPMTAG_PAYLOADFORMAT; break;
+ default: tag = RPMTAG_SOURCERPM; break;
}
mXPUSHs(newSVpv(get_name(pkg->h, tag), 0));
}