diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-25 18:20:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-25 18:20:13 +0000 |
commit | 00c9503622d00943a6738f80d7c920fd384b7a8d (patch) | |
tree | 5cb8e925912a5743d34d33329f9790cabe1d8b4a /URPM.xs | |
parent | 59223e99e4b7df180e3e176227e84ec1a81ad17c (diff) | |
download | perl-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.xs | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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); |