Do not allow pkgnames to start with a hyphen
commitfb97d325a5f83cea36050472097e06c28bc2964f
authorCedric Staniewski <cedric@gmx.ca>
Tue, 9 Jun 2009 19:33:12 +0000 (9 21:33 +0200)
committerDan McGee <dan@archlinux.org>
Mon, 27 Jul 2009 04:29:55 +0000 (26 23:29 -0500)
treeff753e9e4622e2f4072dc6ccc3c2e5d977b8d2d6
parent2013d062668e511289df50315bed33534ad71240
Do not allow pkgnames to start with a hyphen

Commandline arguments starting with a hyphen are usually recognized as
options by unix tools. Therefore, allowing hyphens at the beginning of a
package name requires a different handling of pkgnames as suggested by
rm's manpage.
It would be possible to make the scripts 'hyphen-safe', but
hyphen-prefixed packages will cause trouble for pacman users which do
not know these tricks.

Signed-off-by: Cedric Staniewski <cedric@gmx.ca>
[Dan: remove the repo-add check]
Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/makepkg.sh.in