diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-05-23 11:40:58 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-09-30 18:24:43 +0200 |
commit | 1756bd8b8bc477a5791cbe8c5ddf19176ed8adf5 (patch) | |
tree | eaf947ce452ff5f307490214ea86a558e060ccad | |
parent | 1c950dc919ef7d773e81eae7e32808c9370c321b (diff) | |
download | perl-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.xs | 24 |
1 files changed, 8 insertions, 16 deletions
@@ -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)); } |