aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/rpmutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index 8a463d4..1d6a3cb 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -900,8 +900,8 @@ def get_submit_info(path):
return name, url, max
-def get_pkg_tag(tag, subpkg=None):
- topdir = getpkgtopdir()
+def get_pkg_tag(tag, path=os.path.curdir, subpkg=None):
+ topdir = getpkgtopdir(path)
speclist = glob.glob(os.path.join(topdir, "SPECS", "*.spec"))
if not speclist:
raise Error("no spec files found")