Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

withlock-0.6-1.1 RPM for noarch

From OpenSuSE Tumbleweed for noarch

Name: withlock Distribution: openSUSE Tumbleweed
Version: 0.6 Vendor: openSUSE
Release: 1.1 Build date: Thu Nov 26 00:20:00 2026
Group: System/Management Build host: reproducible
Size: 37502 Source RPM: withlock-0.6-1.1.src.rpm
Packager: https://bugs.opensuse.org
Url: https://github.com/poeml/withlock
Summary: A locking wrapper script
withlock is a locking wrapper script to make sure that some program isn't run
more than once. It is ideal to prevent periodic jobs spawned by cron from
stacking up.

The locks created are valid only while the wrapper is running, and thus will
never require a cleanup, as after a reboot. Thus, the wrapper is safe and easy
to use, and much better than implementing half-hearted locking within scripts.

Provides

Requires

License

Apache-2.0

Changelog

* Wed Nov 25 2026 Peter Poeml <poeml@cmdline.net>
  - Update to 0.6 (released tarball from mirrorbrain.org)
    * Document known limitation: the lock file is unlinked at exit, which
      leaves a sub-second window for overlapping jobs if several are
      spawned per second. Harmless for cron jobs. Noted in README, man
      page and the BUGS section
    * Fold withlock-0.5-fixboo864785.patch into the sources: re-open the
      lock file before every locking attempt (boo#864785)
    * Add THANKS file, installed with the documentation
    * Man page regenerated with ronn-ng
    * Running under Python 3 is now required; the Python 2 version is
      archived in attic/
    * Dropped: withlock-0.5-fixboo864785.patch
  - Re-add fix-use-python3.patch: upstream keeps
    "#!/usr/bin/env python3" for portability, the package uses the
    absolute /usr/bin/python3 path (rpmlint: env-script-interpreter)
    (prepared with help of rool.dev)
* Sun Jan 01 2023 Bernhard Wiedemann <bwiedemann@suse.com>
  - Add withlock-0.5-fixboo864785.patch to fix concurrent locking (boo#864785)
* Thu Oct 03 2019 munix9@googlemail.com
  - update to version 0.5 (bsc#1201336)
  - modernize for Python 2 and 3 compatibility
    thanks to Patch by Jan Beran jberan|redhat.com
    (2.7 or newer; 0.4 for Python 2.4+2.5 is archived in attic/)
    Added: fix-use-python3.patch
* Mon Jun 15 2015 poeml@cmdline.net
  - update to 0.4
  - lockfile cleanup fix upstream (Thanks Martin Caj and Martin Vidner. Good
    Catch!) (cosmetical bug which didn't affect the locking strategy)
  - man page added
  - license file added
  - use the now provided Makefile
  - moved to github.com
* Thu Aug 14 2014 mcaj@suse.com
  - I wrote a patch got-lock.patch to fix the trouble with the got-lock variable.
    I was testing the withlock and still had there the lock file after a
    program already end with exit code 0. I have look on the code together
    with our Python expert mvidner@suse.cz and we found the got-lock variable
    isn't marked ad global variable.I`ll send this to poeml@cmdline.net
    after we test it on our servers.
* Tue Mar 25 2014 poeml@cmdline.net
  - update to 0.3
    * At exit, unlink the lock file only if a lock was actually obtained.
      When waiting for a lock (using -w option) and timing out, the file
      was removed nevertheless. Thanks Bernhard Wiedemann for finding this
      bug and providing such a good test case, so the fix was easy.
      See https://bugzilla.novell.com/show_bug.cgi?id=864785
* Mon Feb 10 2014 poeml@cmdline.net
  - withlock is now distributed as a tarball, which is generally
    easier for packaging on some platforms (at least Solaris). The
    only other change: updated copyright year.
* Mon Aug 27 2012 cfarrell@suse.com
  - license update: Apache-2.0
    SPDX format
* Thu Aug 23 2012 lars@linux-schulserver.de
  - updated to svn revision 5 which updates the year of Copyright,
    fixes a typo and add an URL to project page to the comment header
  - add project URL
  - require python
  - specfile cleanup
* Wed Nov 18 2009 lrupp@suse.de
  - initial package, version 0.2

Files

/usr/bin/withlock
/usr/share/doc/packages/withlock
/usr/share/doc/packages/withlock/README.md
/usr/share/doc/packages/withlock/THANKS
/usr/share/doc/packages/withlock/withlock.1.html
/usr/share/licenses/withlock
/usr/share/licenses/withlock/LICENSE-2.0.txt
/usr/share/man/man1/withlock.1.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Sat Nov 28 22:00:45 2026