diff options
-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); |