X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fupdate_db.py;h=2147524956b823de7ff11dc972e63aec69f7971e;hb=26b64147278c9a69ec31c2dcf64c26f5e7cec57b;hp=91c8211f0f5812afa4173b05f148b6255f020934;hpb=d7c62d1659a2078584a1158466d4abe13c1f4ff3;p=dak.git diff --git a/dak/update_db.py b/dak/update_db.py index 91c8211f..21475249 100755 --- a/dak/update_db.py +++ b/dak/update_db.py @@ -46,7 +46,7 @@ from daklib.daklog import Logger ################################################################################ Cnf = None -required_database_schema = 60 +required_database_schema = 64 ################################################################################ @@ -198,7 +198,7 @@ Updates dak's database schema to the lastest version. You should disable crontab self.usage(exit_code=1) try: - lock_fd = os.open(cnf["Dinstall::LockFile"], os.O_RDWR | os.O_CREAT) + lock_fd = os.open(os.path.join(cnf["Dir::Lock"], 'dinstall.lock'), os.O_RDWR | os.O_CREAT) fcntl.lockf(lock_fd, fcntl.LOCK_EX | fcntl.LOCK_NB) except IOError, e: if errno.errorcode[e.errno] == 'EACCES' or errno.errorcode[e.errno] == 'EAGAIN':