parser.add_argument("--distswhitelist", help="specify comman seperated list of distributions")
+parser.add_argument("--nolock", help="don't try to lock the target directory", action="store_true")
+
args = parser.parse_args()
-lockfd = os.open('.',os.O_RDONLY)
-fcntl.flock(lockfd,fcntl.LOCK_EX | fcntl.LOCK_NB)
+if not args.nolock:
+ lockfd = os.open('.',os.O_RDONLY)
+ fcntl.flock(lockfd,fcntl.LOCK_EX | fcntl.LOCK_NB)
dtNow = datetime.now()
logpath = os.path.dirname(os.path.realpath(__file__))