Skip to content

Commit dad4c7f

Browse files
committed
Fix crash on existing repo
1 parent c4af406 commit dad4c7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

entrypoint.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
# Generate metadata
8686
logging.debug("cwd : {}".format(os.getcwd()))
8787
logging.debug(os.listdir())
88-
88+
8989
deb_file_handle = DebFile(filename=deb_file_path)
9090
deb_file_control = deb_file_handle.debcontrol()
9191

@@ -108,10 +108,11 @@
108108
all_apt_action_commit,
109109
)
110110
)
111-
apt_action_metadata = list(map(lambda x: json.loads(x[0]), apt_action_metadata_str))
111+
apt_action_valid_metadata_str = list(filter(lambda x: len(x) > 0, apt_action_metadata_str))
112+
apt_action_metadata = list(map(lambda x: json.loads(x[0]), apt_action_valid_metadata_str))
112113

113114
logging.debug(all_apt_action_commit)
114-
logging.debug(apt_action_metadata_str)
115+
logging.debug(apt_action_valid_metadata_str)
115116

116117
for check_metadata in apt_action_metadata:
117118
if (check_metadata == current_metadata):

0 commit comments

Comments
 (0)