summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-10-05 16:27:13 +0000
committertv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-10-05 16:27:13 +0000
commit6723cd54abd739b8d3c60d36ad5e8bb409c070a5 (patch)
tree6927b8c2a4774e7796cfac0f132eb87fa0eda515
parentda800a78c2607b6b1e26715923a5297b99bd7653 (diff)
downloadperl-RPM4-6723cd54abd739b8d3c60d36ad5e8bb409c070a5.tar
perl-RPM4-6723cd54abd739b8d3c60d36ad5e8bb409c070a5.tar.gz
perl-RPM4-6723cd54abd739b8d3c60d36ad5e8bb409c070a5.tar.bz2
perl-RPM4-6723cd54abd739b8d3c60d36ad5e8bb409c070a5.tar.xz
perl-RPM4-6723cd54abd739b8d3c60d36ad5e8bb409c070a5.zip
(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
-rw-r--r--RPM4/src/RPM4.xs2
1 files changed, 1 insertions, 1 deletions
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),