summaryrefslogtreecommitdiff
diff options
authorMichael Vogt <michael.vogt@ubuntu.com>2015-06-17 15:44:49 +0200
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2015-06-17 14:22:10 +0000
commit5e03f136a219e2c54dede97e5d6e70e4a5aebeda (patch)
treede875fb17f6f8590b0d4312c1a4bc1ef755980f7
parent8e71de7081391dbab66ac673d75630afa0d6ebfb (diff)
0.7.12 (patches unapplied)import/0.7.12
Imported using git-ubuntu import.
Notes
Notes: * ubuntucoreupgrader/apply.py: - always send json progress on stdout to have progress for snapyp with s-i 3.0 that does not store the progress information in its global config
-rw-r--r--debian/changelog9
-rw-r--r--ubuntucoreupgrader/apply.py8
2 files changed, 12 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index 01fe2a0..73c18a9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+ubuntu-core-upgrader (0.7.12) wily; urgency=low
+
+ * ubuntucoreupgrader/apply.py:
+ - always send json progress on stdout to have progress for
+ snapyp with s-i 3.0 that does not store the progress information
+ in its global config
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Wed, 17 Jun 2015 15:44:49 +0200
+
ubuntu-core-upgrader (0.7.11) wily; urgency=medium
* ubuntucoreupgrader/upgrader.py: Call os.sync() at end of sync_partitions()
diff --git a/ubuntucoreupgrader/apply.py b/ubuntucoreupgrader/apply.py
index 9fb325d..a1e55af 100644
--- a/ubuntucoreupgrader/apply.py
+++ b/ubuntucoreupgrader/apply.py
@@ -39,11 +39,9 @@ class ApplyUpgrade:
stdout = ""
while p.poll() is None:
# send alive ping
- if getattr(config, "machine_readable", False):
- # ensure its written out
- sys.stdout.write(json.dumps({"type": "spinner",
- "msg": "Applying update"})+"\n")
- sys.stdout.flush()
+ sys.stdout.write(json.dumps({"type": "spinner",
+ "msg": "Applying update"})+"\n")
+ sys.stdout.flush()
if select.select([p.stdout.fileno()], [], [], 0.1) != ([], [], []):
stdout += p.stdout.read(1).decode("utf-8", errors="replace")
# get return code