aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-25 18:20:13 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-25 18:20:13 +0000
commit00c9503622d00943a6738f80d7c920fd384b7a8d (patch)
tree5cb8e925912a5743d34d33329f9790cabe1d8b4a /URPM.xs
parent59223e99e4b7df180e3e176227e84ec1a81ad17c (diff)
downloadperl-URPM-00c9503622d00943a6738f80d7c920fd384b7a8d.tar
perl-URPM-00c9503622d00943a6738f80d7c920fd384b7a8d.tar.gz
perl-URPM-00c9503622d00943a6738f80d7c920fd384b7a8d.tar.bz2
perl-URPM-00c9503622d00943a6738f80d7c920fd384b7a8d.tar.xz
perl-URPM-00c9503622d00943a6738f80d7c920fd384b7a8d.zip
(spec2srcheader) simplify using headerPutString()
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs11
1 files changed, 1 insertions, 10 deletions
diff --git a/URPM.xs b/URPM.xs
index 1873cc2..e4dda2a 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3280,17 +3280,8 @@ Urpm_spec2srcheader(specfile)
SV *sv_pkg;
pkg = (URPM__Package)calloc(1, sizeof(struct s_Package));
headerPutString(header, RPMTAG_SOURCERPM, "");
-
- {
- struct rpmtd_s td = {
- .tag = RPMTAG_ARCH,
- .type = RPM_STRING_TYPE,
- .data = (void *) "src",
- .count = 1,
- };
/* parseSpec() sets RPMTAG_ARCH to %{_target_cpu} whereas we really a header similar to .src.rpm header */
- headerMod(header, &td);
- }
+ headerPutString(header, RPMTAG_ARCH, "src");
pkg->h = headerLink(header);
sv_pkg = sv_newmortal();
sv_setref_pv(sv_pkg, "URPM::Package", (void*)pkg);