From 10b8251e818d64c49783088ccd31be2c2ea67b60 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Mon, 5 Dec 2016 23:38:56 +0000 Subject: [PATCH] Don't add rakefile deps in non ruby packages --- autospec/buildreq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autospec/buildreq.py b/autospec/buildreq.py index 8e4f5b6..8d248c7 100644 --- a/autospec/buildreq.py +++ b/autospec/buildreq.py @@ -525,7 +525,7 @@ def scan_for_configure(package, dir, autospecdir): for name in files: if name.lower().startswith("configure."): parse_configure_ac(os.path.join(dirpath, name)) - if name.lower().startswith("rakefile"): + if name.lower().startswith("rakefile") and buildpattern.default_pattern == "ruby": Rakefile(os.path.join(dirpath, name)) if name.lower() == "makefile": buildpattern.set_build_pattern("make", default_score)