mirror of
https://github.com/pygos/pkg-utils.git
synced 2024-11-22 04:49:46 +01:00
Allow '+' characters in package names
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
82c888bcbf
commit
55b2d2f0c0
1 changed files with 2 additions and 1 deletions
|
@ -162,7 +162,8 @@ pkg_reader_t *pkg_reader_open_repo(int dirfd, const char *name)
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
for (i = 0; name[i] != '\0'; ++i) {
|
for (i = 0; name[i] != '\0'; ++i) {
|
||||||
if (!isalnum(name[i]) && name[i] != '_' && name[i] != '-') {
|
if (!isalnum(name[i]) && name[i] != '_' && name[i] != '-' &&
|
||||||
|
name[i] != '+') {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"illegal characters in package name '%s'\n",
|
"illegal characters in package name '%s'\n",
|
||||||
name);
|
name);
|
||||||
|
|
Loading…
Reference in a new issue