From 6723cd54abd739b8d3c60d36ad5e8bb409c070a5 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 5 Oct 2012 16:27:13 +0000 Subject: (srcrpm) simplify through using RPMTAG_NOSOURCE git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@230 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index e2ee589..b668850 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -2677,7 +2677,7 @@ Spec_srcrpm(spec) header = spec->packages->header; #endif struct rpmtd_s td; - int no_src = headerGet(header, RPMTAG_NOPATCH, &td, HEADERGET_MINMEM) || headerGet(header, RPMTAG_NOSOURCE, &td, HEADERGET_MINMEM); + int no_src = headerGet(header, RPMTAG_NOSOURCE, &td, HEADERGET_MINMEM); char *nvr = headerGetAsString(header, RPMTAG_NVR); mXPUSHs(newSVpvf("%s/%s.%ssrc.rpm", rpmGetPath("%{_srcrpmdir}", NULL), -- cgit v1.2.1