aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);