From dcab43f1e1d44bbb7ff4d62bfa7b08b74c681266 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 2 Oct 2018 02:31:57 +0200 Subject: [PATCH] {root,x11}-repo: Run 'apt update' in postinst --- packages/root-repo/build.sh | 9 ++++++++- packages/x11-repo/build.sh | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/root-repo/build.sh b/packages/root-repo/build.sh index abd67a57b..db9f7e459 100644 --- a/packages/root-repo/build.sh +++ b/packages/root-repo/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/termux/termux-root-packages TERMUX_PKG_DESCRIPTION="Package repository containing programs for rooted devices" TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" -TERMUX_PKG_VERSION=1.0 +TERMUX_PKG_VERSION=1.1 TERMUX_PKG_PLATFORM_INDEPENDENT=yes termux_step_make_install() { @@ -9,3 +9,10 @@ termux_step_make_install() { echo "deb https://grimler.se root stable" > $TERMUX_PREFIX/etc/apt/sources.list.d/root.list cp $TERMUX_PKG_BUILDER_DIR/grimler.gpg $TERMUX_PREFIX/etc/apt/trusted.gpg.d/ } + +termux_step_create_debscripts () { + echo "#!$TERMUX_PREFIX/bin/sh" > postinst + echo "echo Downloading updated package list ..." >> postinst + echo "apt update" >> postinst + echo "exit 0" >> postinst +} diff --git a/packages/x11-repo/build.sh b/packages/x11-repo/build.sh index 6440e3d21..3a0e51f14 100644 --- a/packages/x11-repo/build.sh +++ b/packages/x11-repo/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://termux-x11.ml TERMUX_PKG_DESCRIPTION="Package repository containing X11 programs and libraries" TERMUX_PKG_MAINTAINER="Leonid Plyushch @xeffyr" -TERMUX_PKG_VERSION=1.1 +TERMUX_PKG_VERSION=1.2 TERMUX_PKG_PLATFORM_INDEPENDENT=yes termux_step_make_install() { @@ -9,3 +9,10 @@ termux_step_make_install() { echo "deb https://termux-x11.ml x11 main" > $TERMUX_PREFIX/etc/apt/sources.list.d/x11.list cp $TERMUX_PKG_BUILDER_DIR/xeffyr.gpg $TERMUX_PREFIX/etc/apt/trusted.gpg.d/ } + +termux_step_create_debscripts () { + echo "#!$TERMUX_PREFIX/bin/sh" > postinst + echo "echo Downloading updated package list ..." >> postinst + echo "apt update" >> postinst + echo "exit 0" >> postinst +}