Skip to content

Commit

Permalink
Fix crash on existing repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandiny committed Jun 1, 2020
1 parent c4af406 commit dad4c7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
# Generate metadata
logging.debug("cwd : {}".format(os.getcwd()))
logging.debug(os.listdir())

deb_file_handle = DebFile(filename=deb_file_path)
deb_file_control = deb_file_handle.debcontrol()

Expand All @@ -108,10 +108,11 @@
all_apt_action_commit,
)
)
apt_action_metadata = list(map(lambda x: json.loads(x[0]), apt_action_metadata_str))
apt_action_valid_metadata_str = list(filter(lambda x: len(x) > 0, apt_action_metadata_str))
apt_action_metadata = list(map(lambda x: json.loads(x[0]), apt_action_valid_metadata_str))

logging.debug(all_apt_action_commit)
logging.debug(apt_action_metadata_str)
logging.debug(apt_action_valid_metadata_str)

for check_metadata in apt_action_metadata:
if (check_metadata == current_metadata):
Expand Down

0 comments on commit dad4c7f

Please sign in to comment.