Sfoglia il codice sorgente

We DON'T want the gluon version file to collide with the package version stamp dir

Matthias Schiffer 10 anni fa
parent
commit
96b213c386

+ 1 - 1
package/gluon-alfred/files/lib/gluon/alfred/announce.sh

@@ -36,7 +36,7 @@ fi
 
 json_add_object "software"
 	json_add_object "firmware"
-		json_add_string "base" "gluon-$(cat /lib/gluon/version)"
+		json_add_string "base" "gluon-$(cat /lib/gluon/gluon-version)"
 		json_add_string "release" "$(cat /lib/gluon/release)"
 	json_close_object # firmware
 

+ 1 - 1
package/gluon-core/Makefile

@@ -34,7 +34,7 @@ define Package/gluon-core/install
 	$(GLUON_GENERATE) ./generate/* $(1)/
 
 	$(INSTALL_DIR) $(1)/lib/gluon
-	echo "$(GLUON_VERSION)" > $(1)/lib/gluon/version
+	echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
 	echo "$(GLUON_RELEASE)" > $(1)/lib/gluon/release
 endef
 

+ 3 - 0
package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade

@@ -12,6 +12,9 @@ else
 fi
 
 
+# Temporary fix for broken upgrades (happened between 20140225 and 20140226, remove next week)
+if [ -f "$VERSION_DIR" ]; then rm "$VERSION_DIR"; fi
+
 mkdir -p "$VERSION_DIR"