clean up files another way
authorMartin Zobel-Helas <zobel@debian.org>
Sun, 29 Dec 2013 19:25:06 +0000 (20:25 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sun, 29 Dec 2013 19:25:06 +0000 (20:25 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
ud-generate

index 69c8794..d8c394b 100755 (executable)
@@ -668,10 +668,10 @@ def GenDBM(accounts, File, key):
       Fdb.close()
    except:
       # python-dbm names the files Fdb.db.db so we want to them to be Fdb.db
-      Die(File, Fdb + ".db", None)
+      os.remove(File + ".db")
       raise
    # python-dbm names the files Fdb.db.db so we want to them to be Fdb.db
-   Done(File, Fdb + ".db", None)
+   os.rename (File + ".db", File)
 
 # Generate the anon XEarth marker file
 def GenMarkers(accounts, File):