aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-28 22:19:56 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-28 22:19:56 +0200
commit14caa9cdcad9d8ef6a14e3f01da7fecadae836a0 (patch)
treef404fb302d4aaf16cb0474930f8428d8711bf61c /MgaRepo
parent919de84e24d9fc8d4a2fda6cb46cac79744522a8 (diff)
downloadmgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.tar
mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.tar.gz
mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.tar.bz2
mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.tar.xz
mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.zip
make get_pkg_tag() accept path
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")