diff options
author | tv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c> | 2012-06-25 18:27:20 +0000 |
---|---|---|
committer | tv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c> | 2012-06-25 18:27:20 +0000 |
commit | 7b8443f6b85346ba4088a16db4056eea440c38cb (patch) | |
tree | 3778d286026245ca65632b9d27676d58d2c61492 /RPM4/src | |
parent | b2934a54d145a162926a8a64f18c99e7c6ceccaf (diff) | |
download | perl-RPM4-7b8443f6b85346ba4088a16db4056eea440c38cb.tar perl-RPM4-7b8443f6b85346ba4088a16db4056eea440c38cb.tar.gz perl-RPM4-7b8443f6b85346ba4088a16db4056eea440c38cb.tar.bz2 perl-RPM4-7b8443f6b85346ba4088a16db4056eea440c38cb.tar.xz perl-RPM4-7b8443f6b85346ba4088a16db4056eea440c38cb.zip |
(srcrpm) simplify
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@213 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4/src')
-rw-r--r-- | RPM4/src/RPM4.xs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index cb0641e..57f45ce 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -2722,8 +2722,7 @@ Spec_srcrpm(spec) #else 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 = !headerIsEntry(header, RPMTAG_SOURCERPM); char *nvr = headerGetAsString(header, RPMTAG_NVR); mXPUSHs(newSVpvf("%s/%s.%ssrc.rpm", rpmGetPath("%{_srcrpmdir}", NULL), |