[projects/git-slug] Stop processing if the new project list file cannot be created
baggins
baggins at pld-linux.org
Sun Jun 7 11:25:33 CEST 2026
commit 648546968ad97e45e836d2fe7fae0b840bb6f48d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Jun 7 11:25:06 2026 +0200
Stop processing if the new project list file cannot be created
server/slug_watch/slug_watch | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/server/slug_watch/slug_watch b/server/slug_watch/slug_watch
index 78c08d9..ca152e9 100755
--- a/server/slug_watch/slug_watch
+++ b/server/slug_watch/slug_watch
@@ -71,6 +71,7 @@ def process_file(pathname):
shutil.copyfile(PROJECTS_LIST_HEAD, PROJECTS_LIST_NEW)
except (OSError, shutil.Error):
logger.exception('Cannot write {}'.format(PROJECTS_LIST_NEW))
+ return
with open(os.path.join(REFREPO_WDIR, REFFILE),'w') as headfile_new, open(pathname, 'r') as newfile, \
open(PROJECTS_LIST_NEW,'a') as projects:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/648546968ad97e45e836d2fe7fae0b840bb6f48d
More information about the pld-cvs-commit
mailing list