diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/recipetool/create.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 873b7ddcc6..f3428577b9 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -90,9 +90,9 @@ def determine_from_filename(srcfile): """Determine name and version from a filename""" part = '' if '.tar.' in srcfile: - namepart = srcfile.split('.tar.')[0] + namepart = srcfile.split('.tar.')[0].lower() else: - namepart = os.path.splitext(srcfile)[0] + namepart = os.path.splitext(srcfile)[0].lower() splitval = namepart.rsplit('_', 1) if len(splitval) == 1: splitval = namepart.rsplit('-', 1) |