diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-28 22:19:56 +0200 |
---|---|---|
committer | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-28 22:19:56 +0200 |
commit | 14caa9cdcad9d8ef6a14e3f01da7fecadae836a0 (patch) | |
tree | f404fb302d4aaf16cb0474930f8428d8711bf61c | |
parent | 919de84e24d9fc8d4a2fda6cb46cac79744522a8 (diff) | |
download | mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.tar mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.tar.gz mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.tar.bz2 mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.tar.xz mgarepo-14caa9cdcad9d8ef6a14e3f01da7fecadae836a0.zip |
make get_pkg_tag() accept path
-rw-r--r-- | MgaRepo/rpmutil.py | 4 |
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") |