Skip to content

Commit 8991b6e

Browse files
committed
Add a marker file for last time package repository was updated
1 parent 4c1b014 commit 8991b6e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

calm/calm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,11 @@ def do_output(args, state):
645645
keys = ' '.join(['-u' + k for k in args.keys])
646646
utils.system('/usr/bin/gpg ' + keys + ' --batch --yes -b ' + extfile)
647647

648+
# update a marker file indicating when repository was updated
649+
# (for the benefit of quickly checking of mirrors are up to date)
650+
if update_json:
651+
utils.touch(os.path.join(args.rel_area, '.last-updated'))
652+
648653
# add information from repology to packages
649654
repology.annotate_packages(args, state.packages)
650655

0 commit comments

Comments
 (0)