diff options
author | Sam Bingner <sam@bingner.com> | 2018-10-12 12:58:23 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2018-10-12 12:58:23 -1000 |
commit | b61e8b5a784a8bc7c9369fb00a5467cb33b98d59 (patch) | |
tree | f6f7932948ffacb1d20042d0b78c75c0269272b4 /data/_dpkg/extrainst.diff | |
parent | d1f39061fe45b841063274ec9945732775896e02 (diff) |
Update dpkg
Diffstat (limited to 'data/_dpkg/extrainst.diff')
-rw-r--r-- | data/_dpkg/extrainst.diff | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/data/_dpkg/extrainst.diff b/data/_dpkg/extrainst.diff new file mode 100644 index 000000000..fe3052600 --- /dev/null +++ b/data/_dpkg/extrainst.diff @@ -0,0 +1,31 @@ +diff -ru dpkg-1.18.10/lib/dpkg/dpkg.h dpkg-1.18.10+iPhone/lib/dpkg/dpkg.h +--- dpkg-1.18.10/lib/dpkg/dpkg.h 2016-07-05 01:55:13.000000000 +0000 ++++ dpkg-1.18.10+iPhone/lib/dpkg/dpkg.h 2016-08-15 23:45:06.000000000 +0000 +@@ -68,6 +68,7 @@ + #define CONTROLFILE "control" + #define CONFFILESFILE "conffiles" + #define PREINSTFILE "preinst" ++#define EXTRAINSTFILE "extrainst_" + #define POSTINSTFILE "postinst" + #define PRERMFILE "prerm" + #define POSTRMFILE "postrm" +diff -ru dpkg-1.18.10/src/unpack.c dpkg-1.18.10+iPhone/src/unpack.c +--- dpkg-1.18.10/src/unpack.c 2016-07-05 02:00:41.000000000 +0000 ++++ dpkg-1.18.10+iPhone/src/unpack.c 2016-08-15 23:43:41.000000000 +0000 +@@ -1434,6 +1434,16 @@ + + tar_deferred_extract(newfiles_queue.head, pkg); + ++ if (oldversionstatus == PKG_STAT_NOTINSTALLED || oldversionstatus == PKG_STAT_CONFIGFILES) { ++ maintscript_new(pkg, EXTRAINSTFILE, "extra-installation", cidir, cidirrest, ++ "install", NULL); ++ } else { ++ maintscript_new(pkg, EXTRAINSTFILE, "extra-installation", cidir, cidirrest, ++ "upgrade", ++ versiondescribe(&pkg->installed.version, vdew_nonambig), ++ NULL); ++ } ++ + if (oldversionstatus == PKG_STAT_HALFINSTALLED || + oldversionstatus == PKG_STAT_UNPACKED) { + /* Packages that were in ‘installed’ and ‘postinstfailed’ have been |