index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2012-04-24 08:41:46 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-04-24 08:44:11 -0500 |
commit | ca4f8687f7816c283ee2b4a438b28deff3a276d4 (patch) | |
tree | 17e126e316e422f9610eecbabf39bf1d7d9d0555 /scripts/makepkg.sh.in | |
parent | ac6ebcfe93e8214ad4170caab006ffe5f9abe98d (diff) | |
parent | 5f71570ec48588bf24bfe786f40b500216084d07 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 5 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 8b3c80ce..125f68c7 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1497,6 +1497,11 @@ check_sanity() { error "$(gettext "%s is not allowed to start with a hyphen.")" "pkgname" ret=1 fi + if [[ $i = *[^[:alnum:]+_.@-]* ]]; then + error "$(gettext "%s contains invalid characters: '%s'")" \ + 'pkgname' "${pkgname//[[:alnum:]+_.@-]}" + ret=1 + fi done if [[ ${pkgbase:0:1} = "-" ]]; then |