pkglistgen: first pass __file__ through realpath due to packaging symlink.

Same setup as repo-checker.py rather than what worked due to wrapper
scripts.
This commit is contained in:
Jimmy Berry 2018-01-09 17:24:38 -06:00
parent 80f46a2d5d
commit cf2b591c09

View File

@ -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('/')