diff --git a/layerindex/tools/import_otherdistro.py b/layerindex/tools/import_otherdistro.py index 7f71ef9..46eeeca 100755 --- a/layerindex/tools/import_otherdistro.py +++ b/layerindex/tools/import_otherdistro.py @@ -603,6 +603,9 @@ def try_specfile(args): return ret specfile = args.specfile + # Hack to handle files in the current directory + if not os.sep in specfile: + specfile = '.' + os.sep + specfile metapath = os.path.dirname(specfile) try: