Skip to content

Commit

Permalink
api: add repository last modification time
Browse files Browse the repository at this point in the history
  • Loading branch information
maxux committed Oct 17, 2024
1 parent a8096f0 commit 9898879
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/flist-uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,8 +1119,14 @@ def api_repositories():
if not os.path.isdir(target):
continue

dirstat = os.lstat(target)

official = (user in config['official-repositories'])
output.append({'name': user, 'official': official})
output.append({
'name': user,
'official': official,
'updated': int(dirstat.st_mtime),
})

return output

Expand Down

0 comments on commit 9898879

Please sign in to comment.