Changeset 4625
- Timestamp:
- May 8, 2017, 1:03:09 PM (4 years ago)
- Location:
- lliurex-remote-installer/trunk/fuentes/lliurex-remote-installer-gui.install/usr/share/lliurex-remote-installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-remote-installer/trunk/fuentes/lliurex-remote-installer-gui.install/usr/share/lliurex-remote-installer/AptBox.py
r4618 r4625 11 11 import threading 12 12 import sys 13 import subprocess 14 from pprint import pprint 15 13 16 14 17 gettext.textdomain('lliurex-remote-installer-gui') … … 159 162 if self.core.var["apt"] not in [{},"",None,'{}']: 160 163 for x in self.core.var["apt"]: 161 self.new_apt_button(x) 164 #Only show Mirror if exist in server 165 if x in ['Mirror']: 166 exists=self.core.n4d.lliurex_mirror() 167 exists=exists[1] 168 print exists 169 if exists.strip() == 'True': 170 self.new_apt_button(x) 171 else: 172 self.new_apt_button(x) 162 173 163 174 self.core.current_var=copy.deepcopy(self.core.var) -
lliurex-remote-installer/trunk/fuentes/lliurex-remote-installer-gui.install/usr/share/lliurex-remote-installer/N4dManager.py
r4052 r4625 27 27 28 28 #def 29 30 def lliurex_mirror(self): 31 try: 32 variable=self.client.lliurex_version("","LliurexVersion","-m")[1] 33 #print variable 34 return[True,variable] 35 36 except Exception as e: 37 print e 38 return False 39 40 #def lliurex_mirror 29 41 30 42 def test_var (self):
Note: See TracChangeset
for help on using the changeset viewer.