From 1756bd8b8bc477a5791cbe8c5ddf19176ed8adf5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 23 May 2013 11:40:58 +0200 Subject: (sourcerpm) make it more readable --- URPM.xs | 24 ++++++++---------------- 1 file 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)); } -- cgit v1.2.1