summaryrefslogtreecommitdiff
path: root/tools/ipkg-utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-22 19:56:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-12-22 19:56:17 +0000
commit2b0a5e47dc1294c2dd5bb770799f35ce180bf69e (patch)
tree3c9fc49cd9b0712855b6d75904b36becbba52e56 /tools/ipkg-utils
parent9801f4687ff01f37d8f4faa100b35e672ea40739 (diff)
downloadmtk-20170518-2b0a5e47dc1294c2dd5bb770799f35ce180bf69e.zip
mtk-20170518-2b0a5e47dc1294c2dd5bb770799f35ce180bf69e.tar.gz
mtk-20170518-2b0a5e47dc1294c2dd5bb770799f35ce180bf69e.tar.bz2
tools/ipkg-utils: remove some unnecessary field checks
SVN-Revision: 34870
Diffstat (limited to 'tools/ipkg-utils')
-rw-r--r--tools/ipkg-utils/patches/210-remove_field_checks.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/ipkg-utils/patches/210-remove_field_checks.patch b/tools/ipkg-utils/patches/210-remove_field_checks.patch
new file mode 100644
index 0000000..2f1f2ea
--- /dev/null
+++ b/tools/ipkg-utils/patches/210-remove_field_checks.patch
@@ -0,0 +1,36 @@
+--- a/ipkg-build
++++ b/ipkg-build
+@@ -101,9 +101,6 @@ You probably want to chown these to a sy
+ arch=`required_field Architecture`
+ [ "$?" -ne 0 ] && PKG_ERROR=1
+
+- required_field Maintainer >/dev/null
+- [ "$?" -ne 0 ] && PKG_ERROR=1
+-
+ required_field Description >/dev/null
+ [ "$?" -ne 0 ] && PKG_ERROR=1
+
+@@ -114,23 +111,6 @@ You probably want to chown these to a sy
+ echo "admin, base, comm, editors, extras, games, graphics, kernel, libs, misc, net, text, web, x11" >&2
+ fi
+
+- priority=`required_field Priority`
+- [ "$?" -ne 0 ] && PKG_ERROR=1
+- if [ -z "$priority" ]; then
+- echo "The Priority field should have one of the following values:" >&2
+- echo "required, important, standard, optional, extra." >&2
+- echo "If you don't know which priority value you should be using, then use \`optional'" >&2
+- fi
+-
+- source=`required_field Source`
+- [ "$?" -ne 0 ] && PKG_ERROR=1
+- if [ -z "$source" ]; then
+- echo "The Source field contain the URL's or filenames of the source code and any patches"
+- echo "used to build this package. Either gnu-style tarballs or Debian source packages "
+- echo "are acceptable. Relative filenames may be used if they are distributed in the same"
+- echo "directory as the .ipk file."
+- fi
+-
+ disallowed_filename=`disallowed_field Filename`
+ [ "$?" -ne 0 ] && PKG_ERROR=1
+