aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas C. Villa Real <lucasvr@gmail.com>2018-07-02 01:28:30 -0300
committerLucas C. Villa Real <lucasvr@gmail.com>2018-07-02 01:28:30 -0300
commit1c2e90d9c6c9d5091ed024c6fc1bb1cb24b6b90c (patch)
tree08b076135bfc50ed7fac97776b2a0bc063049968
parent3fe6f762e1f1f1e0baad4c7c23507569dcf7ad14 (diff)
downloadThirdPartyInstallers-1c2e90d9c6c9d5091ed024c6fc1bb1cb24b6b90c.tar.xz
Ignore source RPM files.
-rwxr-xr-xbin/RPMFinder2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/RPMFinder b/bin/RPMFinder
index 7693679..82488f5 100755
--- a/bin/RPMFinder
+++ b/bin/RPMFinder
@@ -93,7 +93,7 @@ class RPMFind_Parser(HTMLParser):
self.attrs.pop()
def handle_data(self, data):
- if len(self.tags) and self.tags[-1] == "a" and data.find(".rpm") >= 0:
+ if len(self.tags) and self.tags[-1] == "a" and data.find(".rpm") >= 0 and data.find(".src.rpm") < 0:
href = self.attrs[-1][0][1].replace("\\", "").replace("'", "")
self.candidates[data] = href
elif len(self.tags) and self.tags[-1] == "a" and data.find(".html") >= 0: