summaryrefslogtreecommitdiff
path: root/data/_dpkg/tolerance.diff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-10-12 12:58:23 -1000
committerSam Bingner <sam@bingner.com>2018-10-12 12:58:23 -1000
commitb61e8b5a784a8bc7c9369fb00a5467cb33b98d59 (patch)
treef6f7932948ffacb1d20042d0b78c75c0269272b4 /data/_dpkg/tolerance.diff
parentd1f39061fe45b841063274ec9945732775896e02 (diff)
Update dpkg
Diffstat (limited to 'data/_dpkg/tolerance.diff')
-rw-r--r--data/_dpkg/tolerance.diff37
1 files changed, 37 insertions, 0 deletions
diff --git a/data/_dpkg/tolerance.diff b/data/_dpkg/tolerance.diff
new file mode 100644
index 000000000..f1c1400f6
--- /dev/null
+++ b/data/_dpkg/tolerance.diff
@@ -0,0 +1,37 @@
+diff -ur dpkg-1.18.25/lib/dpkg/parse.c dpkg-1.18.25+iPhone/lib/dpkg/parse.c
+--- dpkg-1.18.25/lib/dpkg/parse.c 2018-06-25 16:48:17.000000000 -1000
++++ dpkg-1.18.25+iPhone/lib/dpkg/parse.c 2018-09-14 10:07:52.000000000 -1000
+@@ -187,8 +187,6 @@
+ if ((ps->flags & pdb_recordavailable) ||
+ (pkg->status != PKG_STAT_NOTINSTALLED &&
+ pkg->status != PKG_STAT_HALFINSTALLED)) {
+- parse_ensure_have_field(ps, &pkgbin->description, "description");
+- parse_ensure_have_field(ps, &pkgbin->maintainer, "maintainer");
+ parse_must_have_field(ps, pkgbin->version.version, "version");
+ }
+
+diff -ur dpkg-1.18.25/lib/dpkg/parsehelp.c dpkg-1.18.25+iPhone/lib/dpkg/parsehelp.c
+--- dpkg-1.18.25/lib/dpkg/parsehelp.c 2018-06-17 05:49:22.000000000 -1000
++++ dpkg-1.18.25+iPhone/lib/dpkg/parsehelp.c 2018-09-14 10:09:14.000000000 -1000
+@@ -239,21 +239,6 @@
+ }
+ rversion->revision= hyphen ? hyphen : "";
+
+- /* XXX: Would be faster to use something like cisversion and cisrevision. */
+- ptr = rversion->version;
+- if (!*ptr)
+- return dpkg_put_error(err, _("version number is empty"));
+- if (*ptr && !c_isdigit(*ptr++))
+- return dpkg_put_warn(err, _("version number does not start with digit"));
+- for (; *ptr; ptr++) {
+- if (!c_isdigit(*ptr) && !c_isalpha(*ptr) && strchr(".-+~:", *ptr) == NULL)
+- return dpkg_put_warn(err, _("invalid character in version number"));
+- }
+- for (ptr = rversion->revision; *ptr; ptr++) {
+- if (!c_isdigit(*ptr) && !c_isalpha(*ptr) && strchr(".+~", *ptr) == NULL)
+- return dpkg_put_warn(err, _("invalid character in revision number"));
+- }
+-
+ return 0;
+ }
+