Skip to content

Commit

Permalink
Tolerate package html directories being owned by someone else
Browse files Browse the repository at this point in the history
As a consequence of the cygwin-admin/cygwin split, we might not own an
existing package listing/summary HTML directory. Ignore any error trying
to set permissions in that case.
  • Loading branch information
jon-turney committed Mar 9, 2024
1 parent 7090c60 commit 8b01a6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion calm/pkg2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def arch_packages(packages, p):
def ensure_dir_exists(args, path):
if not args.dryrun:
utils.makedirs(path)
os.chmod(path, 0o755)
try:
os.chmod(path, 0o755)
except PermissionError:
pass


#
Expand Down

0 comments on commit 8b01a6e

Please sign in to comment.