diff options
author | Joe Rayhawk <jrayhawk+piny.be@omgwallhack.org> | 2009-10-21 17:49:10 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk+piny.be@omgwallhack.org> | 2009-10-21 17:49:10 -0700 |
commit | a24383e2b312f697e1665c656e2208f6ba42ba15 (patch) | |
tree | b0f1c2e651fc4bb523ffed750f85598dafdf056a /usr/local/sbin/newrepo | |
parent | 9b531adbcaa807a352d14b68b70ed125e285d056 (diff) | |
download | piny-code-a24383e2b312f697e1665c656e2208f6ba42ba15.tar.gz piny-code-a24383e2b312f697e1665c656e2208f6ba42ba15.zip |
Remove support for periods in reponames since they cause problems.
Diffstat (limited to 'usr/local/sbin/newrepo')
-rwxr-xr-x | usr/local/sbin/newrepo | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/sbin/newrepo b/usr/local/sbin/newrepo index 8cee460..73cf68e 100755 --- a/usr/local/sbin/newrepo +++ b/usr/local/sbin/newrepo @@ -6,9 +6,9 @@ use warnings; my( $errorto ) = 'jrayhawk+piny.be@omgwallhack.org'; # Email address to send horrible errors to. my( $reponame, $email, @errors, $wikilisttempfile, $cgitrctempfile, $description ); -if ( ( ! scalar $ARGV[0] ) or ( scalar $ARGV[1] ) or ( $ARGV[0] !~ /^[a-z0-9][a-z0-9+.-]+$/ ) ) { +if ( ( ! scalar $ARGV[0] ) or ( scalar $ARGV[1] ) or ( $ARGV[0] !~ /^[a-z0-9][a-z0-9+-]+$/ ) ) { print( "Usage: newrepo REPONAME\n" ); - print( " REPONAME must consist only of lower case letters (a-z), digits (0-9), plus (+) and minus (-) signs, and periods (.).\n" ); + print( " REPONAME must consist only of lower case letters (a-z), digits (0-9), plus (+) signs, and minus (-) signs.\n" ); print( " REPONAME must be at least two characters long and must start with an alphanumeric character.\n" ); exit( 1 ); } else { |