index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2013-06-06 13:47:26 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-06-06 13:47:26 +1000 |
commit | 9574bfd6c873d70e29a5003461b2d691f134c8ab (patch) | |
tree | 324d6f160f4f52c47e4c33aa73b76fbc473a21d9 /scripts/makepkg.sh.in | |
parent | cbbd3781c249c8318934fe0810a09546c2760f53 (diff) | |
parent | 450be928da1a71bebc3524f3f0bdb4160845b37e (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 1d737d07..528db14d 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -2115,6 +2115,10 @@ check_sanity() { error "$(gettext "%s is not allowed to start with a hyphen.")" "pkgname" ret=1 fi + if [[ ${i:0:1} = "." ]]; then + error "$(gettext "%s is not allowed to start with a dot.")" "pkgname" + ret=1 + fi if [[ $i = *[^[:alnum:]+_.@-]* ]]; then error "$(gettext "%s contains invalid characters: '%s'")" \ 'pkgname' "${pkgname//[[:alnum:]+_.@-]}" |