Commit 1c668a29 authored by Jakub Ružička's avatar Jakub Ružička
Browse files

build: correctly pass input files to srcpkg

Building packages from archives should work again:

    apkg build -a path/to/archive.tgz

Also make input parsing helper more resiliant.
parent b0f06347
......@@ -43,6 +43,8 @@ def build_package(
# make source package
infiles = _srcpkg.make_srcpkg(
archive=archive,
input_files=input_files,
input_file_lists=input_file_lists,
version=version,
release=release,
distro=distro,
......
......@@ -57,6 +57,11 @@ def parse_input_files(files, file_lists):
utility to parse apkg input files and input file lists
into a single list of input files
"""
if not files:
files = []
if not file_lists:
file_lists = []
all_files = [Path(f) for f in files]
if len([fl for fl in file_lists if fl == '-']) > 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment