Description: adjust to changes in lockfile api 0.9++
Author: Alexander Zangerl <az@debian.org>
Bug: https://bugs.debian.org/789550

--- a/bin/duplicity
+++ b/bin/duplicity
@@ -44,7 +44,7 @@ import resource
 import re
 import threading
 from datetime import datetime
-from lockfile import FileLock
+from lockfile import LockFile
 
 if '--pydevd' in sys.argv:
     # The following is for starting remote debugging in Eclipse with Pydev.
@@ -1363,7 +1363,7 @@ See https://bugs.launchpad.net/duplicity
     # determine what action we're performing and process command line
     action = commandline.ProcessCommandLine(sys.argv[1:])
 
-    globals.lockfile = FileLock(os.path.join(globals.archive_dir.name, "lockfile"), threaded=False)
+    globals.lockfile = LockFile(os.path.join(globals.archive_dir.name, "lockfile"), threaded=False)
     if globals.lockfile.is_locked():
         log.FatalError(
             "Another instance is already running with this archive directory\n"
--- a/duplicity/util.py
+++ b/duplicity/util.py
@@ -31,7 +31,7 @@ import sys
 import string
 import traceback
 
-from lockfile import FileLock, UnlockError
+from lockfile import LockFile, UnlockError
 
 from duplicity import tarfile
 
