Skip to content

Commit

Permalink
Allow multiple debs
Browse files Browse the repository at this point in the history
As requested in jrandiny#2
allow multiple deb files.
  • Loading branch information
smeinecke committed Apr 10, 2022
1 parent dad4c7f commit 5646349
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

supported_arch_list = supported_arch.strip().split('\n')
supported_version_list = supported_version.strip().split('\n')
deb_file_path = deb_file_path.strip()
deb_file_path = deb_file_path.strip().split('\n')
deb_file_version = deb_file_target_version.strip()

logging.debug(supported_arch_list)
Expand Down Expand Up @@ -86,7 +86,7 @@
logging.debug("cwd : {}".format(os.getcwd()))
logging.debug(os.listdir())

deb_file_handle = DebFile(filename=deb_file_path)
deb_file_handle = DebFile(filename=deb_file_path[0])
deb_file_control = deb_file_handle.debcontrol()

current_metadata = {
Expand Down Expand Up @@ -160,16 +160,17 @@

# Fill repo

logging.info('-- Adding package to repo --')
logging.info('-- Adding package(s) to repo --')

logging.info('Adding {}'.format(deb_file_path))
os.system(
'reprepro -b {} --export=silent-never includedeb {} {}'.format(
apt_dir,
deb_file_version,
deb_file_path,
for deb_file in deb_file_path:
logging.info('Adding {}'.format(deb_file))
os.system(
'reprepro -b {} --export=silent-never includedeb {} {}'.format(
apt_dir,
deb_file_version,
deb_file,
)
)
)

logging.debug('Signing to unlock key on gpg agent')
gpg.sign('test', keyid=private_key_id, passphrase=key_passphrase)
Expand Down

0 comments on commit 5646349

Please sign in to comment.