From 975d539f263be9e864fd6bd66fabd9fa3bd96b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 13 Sep 2017 15:40:11 +0200 Subject: updater-ng localrepo migration --- updater-ng-auto/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'updater-ng-auto') diff --git a/updater-ng-auto/Makefile b/updater-ng-auto/Makefile index 04b1f6e..ae59e46 100644 --- a/updater-ng-auto/Makefile +++ b/updater-ng-auto/Makefile @@ -124,12 +124,19 @@ endef define Package/$(PKG_NAME)-opkg TITLE:=OPKG compatibility wrapper for next generation updater - DEPENDS:=+opkg +localrepo + DEPENDS:=+opkg +$(PKG_NAME)-localrepo endef define Package/$(PKG_NAME)-opkg/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/opkg $(1)/usr/bin/opkg-pkgupdate-wrapper.sh + $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/content2localrepo $(1)/usr/bin/updater-ng-opkg-content2localrepo.sh +endef + +define Package/$(PKG_NAME)-opkg/postinst +[ -n "$$IPKG_INSTROOT" ] || { + /usr/bin/updater-ng-opkg-content2localrepo.sh +} endef # Current implementation of updater can't remove package before replan and so we -- cgit v1.2.3