diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-09-13 15:40:11 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-09-13 15:43:05 +0200 |
commit | 975d539f263be9e864fd6bd66fabd9fa3bd96b0d (patch) | |
tree | 16e8ed1b7ae58a64cef859725c5d0542dce008bc | |
parent | 74799790484128bc2de80a620b67aa584c204b6e (diff) | |
download | turris-myrepo-975d539f263be9e864fd6bd66fabd9fa3bd96b0d.tar.gz turris-myrepo-975d539f263be9e864fd6bd66fabd9fa3bd96b0d.tar.bz2 turris-myrepo-975d539f263be9e864fd6bd66fabd9fa3bd96b0d.zip |
updater-ng localrepo migration
-rw-r--r-- | updater-ng-auto/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
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 |