From cf2b591c09622949dc852ebd22f64967d90e7c0c Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Tue, 9 Jan 2018 17:24:38 -0600 Subject: [PATCH] pkglistgen: first pass __file__ through realpath due to packaging symlink. Same setup as repo-checker.py rather than what worked due to wrapper scripts. --- pkglistgen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkglistgen.py b/pkglistgen.py index fa6f89ab..b7b42171 100755 --- a/pkglistgen.py +++ b/pkglistgen.py @@ -63,6 +63,7 @@ from osclib.memoize import CACHEDIR logger = logging.getLogger() +SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__)) ARCHITECTURES = ['x86_64', 'ppc64le', 's390x', 'aarch64'] DEFAULT_REPOS = ("openSUSE:Factory/standard") PRODUCT_SERVICE = '/usr/lib/obs/service/create_single_product' @@ -717,7 +718,7 @@ class CommandLineInterface(ToolBase.CommandLineInterface): """ # only there to parse the repos - bs_mirrorfull = os.path.join(os.path.dirname(__file__), 'bs_mirrorfull') + bs_mirrorfull = os.path.join(SCRIPT_PATH, 'bs_mirrorfull') global_update = False for prp in self.tool.repos: project, repo = prp.split('/')