Bisa / factorio-init

Factorio init script
MIT License
419 stars 85 forks source link

update sorts updates incorrectly #80

Closed KenjiE20 closed 8 years ago

KenjiE20 commented 8 years ago

When applying updates, update does not numerically sort version numbers;

New version core-linux_headless64 0.13.18.
Wrote /tmp/factorio-update/core-linux_headless64-0.12.35-0.13.0-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.12.
35-0.13.0-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.0-0.13.1-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.0
-0.13.1-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.1-0.13.2-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.1
-0.13.2-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.2-0.13.3-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.2
-0.13.3-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.3-0.13.4-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.3
-0.13.4-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.4-0.13.5-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.4
-0.13.5-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.5-0.13.6-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.5
-0.13.6-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.6-0.13.7-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.6
-0.13.7-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.7-0.13.8-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.7
-0.13.8-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.8-0.13.9-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.8
-0.13.9-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.9-0.13.10-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13.
9-0.13.10-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.10-0.13.11-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13
.10-0.13.11-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.11-0.13.12-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13
.11-0.13.12-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.12-0.13.13-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13
.12-0.13.13-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.13-0.13.14-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13
.13-0.13.14-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.14-0.13.15-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13
.14-0.13.15-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.15-0.13.16-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13
.15-0.13.16-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.16-0.13.17-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13
.16-0.13.17-update.zip`
Wrote /tmp/factorio-update/core-linux_headless64-0.13.17-0.13.18-update.zip, apply with `factorio --apply-update /tmp/factorio-update/core-linux_headless64-0.13
.17-0.13.18-update.zip`
Still not shut down, waiting a while longer...
Factorio is now shut down.
Applying /tmp/factorio-update/core-linux_headless64-0.12.35-0.13.0-update.zip ...
Applying /tmp/factorio-update/core-linux_headless64-0.13.0-0.13.1-update.zip ...
Applying /tmp/factorio-update/core-linux_headless64-0.13.10-0.13.11-update.zip ...
   0.000 2016-08-26 18:10:54; Factorio 0.13.1 (Build 22864, linux64, headless)
   0.169 Operating system: Linux (Ubuntu 14.04)
   0.169 Program arguments: "/home/factorio/factorio/bin/x64/factorio" "--apply-update" "/tmp/factorio-update/core-linux_headless64-0.13.10-0.13.11-update.zip"
   0.169 Read data path: /home/factorio/factorio/data
   0.169 Write data path: /home/factorio/factorio
   0.169 Binaries path: /home/factorio/factorio/bin
   0.255 Running in headless mode
   0.259 Loading mod core 0.0.0 (data.lua)
   0.281 Loading mod base 0.13.1 (data.lua)
   0.804 Checksum for core: 1399339455
   0.804 Checksum for mod base: 2679425721
   1.946 Custom inputs active: 0
   1.947 Factorio initialised
   1.948 Info Updater.cpp:390: Applying update /tmp/factorio-update/core-linux_headless64-0.13.10-0.13.11-update.zip
   3.998 Error Util.cpp:57: File /home/factorio/factorio/bin/x64/factorio has unexpected content
   4.027 Goodbye

Error! Failed to apply update
Bisa commented 8 years ago

Thank you for the report, I'll see what I can do.

Bisa commented 8 years ago

@KenjiE20 please note that updating version 0.13.12 to 0.13.13 of factorio headless is broken, meaning you will not be able to apply that update - you need to download the latest headless version and go from there either by manually overwriting the files you need or perform a clean install