[Pkg-privacy-commits] [tails-installer] 143/210: Make the size and path change when the arch changes
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:39 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.
commit 30924822062f4b51b42e3e8946d7690a6fa44e5c
Author: Martin Briza <mbriza at redhat.com>
Date: Wed Aug 26 14:50:52 2015 +0200
Make the size and path change when the arch changes
---
liveusb/gui.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/liveusb/gui.py b/liveusb/gui.py
index ad75f9f..5e69815 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -462,6 +462,9 @@ class Release(QObject):
self._writer.runningChanged.connect(self.statusChanged)
self._writer.statusChanged.connect(self.statusChanged)
+ parent.releaseProxyModel.archChanged.connect(self.sizeChanged)
+ parent.releaseProxyModel.archChanged.connect(self.pathChanged)
+
@pyqtSlot()
def get(self):
@@ -525,9 +528,11 @@ class Release(QObject):
@pyqtProperty(float, notify=sizeChanged)
def size(self):
- if 'x86_64' in self._data['variants'].keys():
- return self._data['variants']['x86_64']['size']
- return self._data['variants']['']['size']
+ if not self.isLocal:
+ for arch in self._data['variants'].keys():
+ if arch in self._archMap[self.liveUSBData.releaseProxyModel.archFilter]:
+ return self._data['variants'][arch]['size']
+ return 0
@size.setter
def size(self, value):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list