Changeset 2876
- Timestamp:
- Nov 15, 2016, 5:13:41 PM (4 years ago)
- Location:
- n4d-backup-manager/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
n4d-backup-manager/trunk/fuentes/debian/changelog
r2763 r2876 1 n4d-backup-manager (0.0.2-lliurex3) xenial; urgency=medium 2 3 * Fixed bug: exception when dbdump fails was trying to print an undefined variable 4 5 -- Juanma Navarro Mañez <juanma1980@gmail.com> Tue, 15 Nov 2016 17:13:19 +0100 6 1 7 n4d-backup-manager (0.0.2-lliurex2) xenial; urgency=medium 2 8 -
n4d-backup-manager/trunk/fuentes/n4d-backup-manager.install/usr/share/n4d/python-plugins/support/BackupManager.py
r2762 r2876 78 78 if self.app in self.apps_dbFiles: 79 79 dbDumpFile=self.dumpDb(str(self.app)) 80 try:80 if dbDumpFile!='': 81 81 if os.path.exists(dbDumpFile): 82 tar.add(dbDumpFile) 83 except Exception as e: 84 print "%s database not found!!" % str(application) 85 pass 82 tar.add(dbDumpFile) 83 else: 84 print "%s database not found!!" % str(self.app) 85 else: 86 print "%s database not found!!" % str(self.app) 86 87 87 88 tar.close() … … 146 147 def existsDb(self,dbName): 147 148 cmd='/usr/sbin/lliurex-sgbd --db_is_present ' + dbName 148 sp=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE) 149 output=sp.communicate() 150 dbExists=str(output[0]) 151 if dbExists.rstrip() == 'YES': 152 dbExists=True 153 else: 149 try: 150 sp=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE) 151 output=sp.communicate() 152 dbExists=str(output[0]) 153 if dbExists.rstrip() == 'YES': 154 dbExists=True 155 else: 156 dbExists=False 157 except: 154 158 dbExists=False 155 156 159 return dbExists 157 160 … … 182 185 return path+'/'+ dbName+".sql" 183 186 else: 184 return False187 return '' 185 188 except Exception as e: 186 189 print e 187 return [False,str(e)]190 pass 188 191 189 192 def restoreDb(self,dbDump_path):
Note: See TracChangeset
for help on using the changeset viewer.