when building packages, accept uppercase letters in the package name
[openwrt/svn-archive/archive.git] / tools / ipkg-utils / patches / 150-uppercase_letters.patch
1 Index: ipkg-utils-1.7/ipkg-build
2 ===================================================================
3 --- ipkg-utils-1.7.orig/ipkg-build 2007-07-21 03:10:58.228362436 +0200
4 +++ ipkg-utils-1.7/ipkg-build 2007-07-21 03:11:02.912629374 +0200
5 @@ -133,7 +133,7 @@
6 disallowed_filename=`disallowed_field Filename`
7 [ "$?" -ne 0 ] && PKG_ERROR=1
8
9 - if echo $pkg | grep '[^a-z0-9.+-]'; then
10 + if echo $pkg | grep '[^a-zA-Z0-9.+-]'; then
11 echo "*** Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])" >&2
12 PKG_ERROR=1;
13 fi
14 Index: ipkg-utils-1.7/ipkg-buildpackage
15 ===================================================================
16 --- ipkg-utils-1.7.orig/ipkg-buildpackage 2007-07-21 03:10:43.859543602 +0200
17 +++ ipkg-utils-1.7/ipkg-buildpackage 2007-07-21 03:10:52.212019583 +0200
18 @@ -69,7 +69,7 @@
19 required_field Maintainer >/dev/null
20 required_field Description >/dev/null
21
22 - if echo $pkg | grep '[^a-z0-9.+-]'; then
23 + if echo $pkg | grep '[^a-zA-Z0-9.+-]'; then
24 echo "ipkg-build: Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])"
25 PKG_ERROR=1;
26 fi