[sysadmin-bin] Ensure order is:gz,xz,bz2
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Ensure order is:gz,xz,bz2
- Date: Mon, 6 Jun 2011 09:53:48 +0000 (UTC)
commit 2a58a7bd6a7dc963a827320410107d385a9b226c
Author: Olav Vitters <olav vitters nl>
Date: Mon Jun 6 11:51:18 2011 +0200
Ensure order is:gz,xz,bz2
ftpadmin | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/ftpadmin b/ftpadmin
index 1050bf4..5f4c6ff 100755
--- a/ftpadmin
+++ b/ftpadmin
@@ -774,6 +774,7 @@ class ModuleInfo(DirectoryInfo):
class InstallModule(BasicInfo):
+ # Preferred format should appear last
INSTALL_FORMATS = ('tar.bz2', 'tar.xz')
def __init__(self, file, section=DEFAULT_SECTION):
@@ -964,7 +965,7 @@ Install %s? [Y/n]""" % self.module,
print ", done"
sys.stdout.write(' - Updating LATEST-IS')
- for extension in self.INSTALL_FORMATS + ('tar.gz',):
+ for extension in reversed(self.INSTALL_FORMATS + ('tar.gz',)):
latest = '%s-%s.%s' % (self.module, self.version, extension)
if os.path.exists(os.path.join(self.destination, latest)):
for fn in glob.glob(os.path.join(self.destination, 'LATEST-IS-*')):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]