diff options
author | Elan Ruusamäe | 2011-02-12 18:59:39 (GMT) |
---|---|---|
committer | Elan Ruusamäe | 2011-02-12 18:59:39 (GMT) |
commit | f0cc35eef89a2f84f3fadf3ddc71ae75c99f29ee (patch) | |
tree | fad5d72c920da50ac2b08e62fe75ff7d80406d80 /bin | |
parent | 63b9ab4d21e1ae13ebeff73add4cf89ff9b00a60 (diff) | |
download | pld-ftp-admin-f0cc35eef89a2f84f3fadf3ddc71ae75c99f29ee.zip pld-ftp-admin-f0cc35eef89a2f84f3fadf3ddc71ae75c99f29ee.tar.gz |
- lock tree for rpmlint as well
Changed files:
bin/pfa-lintpkg -> 1.9
Diffstat (limited to 'bin')
-rw-r--r-- | bin/pfa-lintpkg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/pfa-lintpkg b/bin/pfa-lintpkg index 78bc704..e62182e 100644 --- a/bin/pfa-lintpkg +++ b/bin/pfa-lintpkg @@ -145,6 +145,11 @@ class LintPkg: rc = 1 return rc == 0 +lock = 'rpmlint:'+treename +if not ftpio.lock(lock, True): + print >>sys.stderr, "ERR: %s tree already locked for rpmlint" % treename + sys.exit(1) + if not quiet: print "rpmlint of %d files from %d packages" % (len(files), len(tree.loadedpkgs)) lint = LintPkg("~/tmp/rpmlint") @@ -157,3 +162,5 @@ for file in files: if not quiet: lint.print_stats() + +ftpio.unlock(lock) |