summaryrefslogtreecommitdiffstats
path: root/RPM4/src/RPM4.xs
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4/src/RPM4.xs')
-rw-r--r--RPM4/src/RPM4.xs4
1 files changed, 4 insertions, 0 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index 2cf9e36..d72b60a 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -2912,6 +2912,8 @@ Spec_sources(spec, is = 0)
#ifdef RPM4_9_0
rpmSpecSrcIter iter = rpmSpecSrcIterInit(spec);
while ((srcPtr = rpmSpecSrcIterNext(iter)) != NULL) {
+ if (is && !(rpmSpecSrcFlags(srcPtr) & is))
+ continue;
XPUSHs(sv_2mortal(newSVpv(rpmSpecSrcFilename(srcPtr, 0), 0)));
}
#else
@@ -2936,6 +2938,8 @@ Spec_sources_url(spec, is = 0)
#ifdef RPM4_9_0
rpmSpecSrcIter iter = rpmSpecSrcIterInit(spec);
while ((srcPtr = rpmSpecSrcIterNext(iter)) != NULL) {
+ if (is && !(rpmSpecSrcFlags(srcPtr) & is))
+ continue;
XPUSHs(sv_2mortal(newSVpv(rpmSpecSrcFilename(srcPtr, 1), 0)));
}
#else