You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@attic.apache.org by se...@apache.org on 2021/03/11 00:45:04 UTC
svn commit: r1887460 - /attic/site/retire.py
Author: sebb
Date: Thu Mar 11 00:45:04 2021
New Revision: 1887460
URL: http://svn.apache.org/viewvc?rev=1887460&view=rev
Log:
Name is checked anyway
Modified:
attic/site/retire.py
Modified: attic/site/retire.py
URL: http://svn.apache.org/viewvc/attic/site/retire.py?rev=1887460&r1=1887459&r2=1887460&view=diff
==============================================================================
--- attic/site/retire.py (original)
+++ attic/site/retire.py Thu Mar 11 00:45:04 2021
@@ -107,20 +107,17 @@ def create_project(pid):
for arg in sys.argv[1:]:
print("Processing "+arg)
- if not re.search("^[-a-z0-9]+$",arg):
- print("Expecting lower-case, '-' or digits only")
- else:
- if not arg in retirees:
- print("%s does not appear to be a retired project" % arg)
- continue
- flagdir = join(flagged, arg)
- if os.path.exists(flagdir):
- print("flagged/%s already exists" % arg)
- continue
- create_jira_template(arg)
- try:
- os.mkdir(flagdir)
- os.system("svn add %s" % flagdir)
- create_project(arg)
- except Exception as e:
- print(e)
+ if not arg in retirees:
+ print("%s does not appear to be a retired project" % arg)
+ continue
+ flagdir = join(flagged, arg)
+ if os.path.exists(flagdir):
+ print("flagged/%s already exists" % arg)
+ continue
+ create_jira_template(arg)
+ try:
+ os.mkdir(flagdir)
+ os.system("svn add %s" % flagdir)
+ create_project(arg)
+ except Exception as e:
+ print(e)