summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott James Remnant <keybuk@debian.org>2004-05-06 23:06:31 +0000
committerScott James Remnant <keybuk@debian.org>2004-05-06 23:06:31 +0000
commit071c198c0f503b2d6de36e7f7325a7e13dcdf469 (patch)
treebc9cdca2f844a1c95d9a252493e9d454a8ee8d77 /lib
parent89dc72bc3a48f1e94fd73e71790d3e810b9c8fc2 (diff)
downloaddpkg-071c198c0f503b2d6de36e7f7325a7e13dcdf469.tar.gz
Remove restriction that package names be at least two characters long.
Diffstat (limited to 'lib')
-rw-r--r--lib/parsehelp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/parsehelp.c b/lib/parsehelp.c
index 9478445b8..dbdff0fbe 100644
--- a/lib/parsehelp.c
+++ b/lib/parsehelp.c
@@ -112,7 +112,6 @@ const char *illegal_packagename(const char *p, const char **ep) {
if (!*p) return _("may not be empty string");
if (!isalnum(*p)) return _("must start with an alphanumeric");
- if (!*++p) return _("must be at least two characters");
while ((c= *p++)!=0)
if (!isalnum(c) && !strchr(alsoallowed,c)) break;
if (!c) return NULL;