summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4')
-rw-r--r--RPM4/src/RPM4.xs8
1 files changed, 4 insertions, 4 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index ac6c556..285f54f 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -2746,16 +2746,16 @@ Spec_srcrpm(spec)
#else
header = spec->packages->header;
#endif
- (void) headerNVR(header, &name, &version, &release);
+ name = get_name(header, RPMTAG_NAME);
+ version = get_name(header, RPMTAG_VERSION);
+ release = get_name(header, RPMTAG_RELEASE);
+
XPUSHs(sv_2mortal(newSVpvf("%s/%s-%s-%s.%ssrc.rpm",
rpmGetPath("%{_srcrpmdir}", NULL),
name, version, release,
// FIXME: we basically want genSourceRpmName() which is internal :-(
"" //spec->noSource ? "no" : ""
)));
- headerFreeTag(header, name, RPM_STRING_TYPE);
- headerFreeTag(header, version, RPM_STRING_TYPE);
- headerFreeTag(header, release, RPM_STRING_TYPE);
void
Spec_binrpm(spec)