From 14caa9cdcad9d8ef6a14e3f01da7fecadae836a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Tue, 28 Jun 2016 22:19:56 +0200 Subject: make get_pkg_tag() accept path --- MgaRepo/rpmutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MgaRepo') 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") -- cgit v1.2.1