Skip to content

Commit

Permalink
flatpak: fix building snapshot flatpak bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jstebbins committed Feb 3, 2023
1 parent 1bd52ec commit dbca5a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/create_flatpak_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(self, source_list, runtime, qsv, nvenc, template=None):
elif value.entry_type == SourceType.contrib:
source["type"] = "file"
source["dest"] = "download"
if value.basename != "":
if value.basename != None and value.basename != "":
source["dest-filename"] = value.basename
else:
source["dest-filename"] = url2filename(value.url)
Expand Down Expand Up @@ -157,12 +157,16 @@ def usage():
if arg is not None and arg != "":
current_source = arg
source_list[arg] = SourceEntry(arg, SourceType.archive)
source_list[current_source].sha256 = None
source_list[current_source].basename = None
else:
current_source = None
elif opt in ("-c", "--contrib"):
if arg is not None and arg != "":
current_source = arg
source_list[arg] = SourceEntry(arg, SourceType.contrib)
source_list[current_source].sha256 = None
source_list[current_source].basename = None
else:
current_source = None
elif opt in ("-s", "--sha256"):
Expand Down

0 comments on commit dbca5a6

Please sign in to comment.