Changeset 2517
- Timestamp:
- Sep 27, 2016, 1:10:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-mirror/trunk/fuentes/lliurex-mirror-gui/lliurex_mirror_connect.py
r2516 r2517 169 169 170 170 if __name__ == '__main__': 171 c = LliurexMirrorN4d('localhost',['kbut','lliurex'])172 config = {'IGN_GPG': 1, 'NAME': 'Mi ppa', 'ORIGS': {'1': 'ppa.launchpad.net/llxdev/xenial/ubuntu', '3': '172.20.8.6/mirror/ppa-xenial/', '2': '/home/kbut/miMirrorPortatil'}, 'SECTIONS': ['main', 'universe', 'restricted', 'multiverse'], 'MIRROR_PATH': '/home/mirror-ppa', 'ARCHITECTURES': ['amd64', 'i386'], 'CHK_MD5': 0, 'IGN_RELEASE': 0, 'BANNER': '', 'CURRENT_UPDATE_OPTION': '1', 'DISTROS': ['xenial']}171 #c = LliurexMirrorN4d('localhost',['kbut','lliurex']) 172 #config = {'IGN_GPG': 1, 'NAME': 'Mi ppa', 'ORIGS': {'1': 'ppa.launchpad.net/llxdev/xenial/ubuntu', '3': '172.20.8.6/mirror/ppa-xenial/', '2': '/home/kbut/miMirrorPortatil'}, 'SECTIONS': ['main', 'universe', 'restricted', 'multiverse'], 'MIRROR_PATH': '/home/mirror-ppa', 'ARCHITECTURES': ['amd64', 'i386'], 'CHK_MD5': 0, 'IGN_RELEASE': 0, 'BANNER': '', 'CURRENT_UPDATE_OPTION': '1', 'DISTROS': ['xenial']} 173 173 #print c.save_config('mippa',config) 174 174 #print c.create_conf(config) … … 178 178 #print c.mirror_list() 179 179 #print c.export('mippa','/home/mirror16') 180 print c.is_alive_export()181 print c.get_percentage_export()180 #print c.is_alive_export() 181 #print c.get_percentage_export() 182 182 #print c.get_percentage('mippa') 183 183 #print c.is_alive() 184 print c.stop_export() 184 #print c.stop_export() 185 pass
Note: See TracChangeset
for help on using the changeset viewer.