[eso-midas] 04/06: Use dotlockfile instead of lockfile.

Ole Streicher olebole-guest at moszumanska.debian.org
Wed Apr 23 09:28:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

olebole-guest pushed a commit to branch debian
in repository eso-midas.

commit 75b3354c8c2d782c149cf70b1d88c9fcf4010bc8
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Tue Apr 22 20:56:35 2014 +0200

    Use dotlockfile instead of lockfile.
---
 debian/control                   |  2 +-
 debian/patches/dotlockfile.patch | 24 ++++++++++++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index e719649..eae0a59 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,7 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-astro/packages/eso-midas
 
 Package: eso-midas
 Architecture: any
-Depends: ${misc:Depends}, ${shlibs:Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, liblockfile-bin
 Description: European Southern Observatory Munich Image Data Analysis System
  The ESO-MIDAS system provides general tools for image processing and data
  reduction with emphasis on astronomical applications including imaging and
diff --git a/debian/patches/dotlockfile.patch b/debian/patches/dotlockfile.patch
new file mode 100644
index 0000000..b98b1df
--- /dev/null
+++ b/debian/patches/dotlockfile.patch
@@ -0,0 +1,24 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Use dotlockfile instead of lockfile.
+--- a/system/unix/inmidas
++++ b/system/unix/inmidas
+@@ -224,7 +224,7 @@
+ if [ -z "$DAZUNIT" -a \( -z "$MIDOPTION" -o "$MIDOPTION" = "NOPARALLEL" -o "$SELECT_UNIT" = "AUTO" \) ]
+ then
+ 
+- lockfile -1 -r 10 $MID_WORK/running.lock 	# 2> /dev/null 
++ dotlockfile -r 5 $MID_WORK/running.lock 	# 2> /dev/null 
+  if [ $? != 0 ] ; then
+     DAZUNIT=99
+ 
+--- a/system/unix/inmidas.sh
++++ b/system/unix/inmidas.sh
+@@ -224,7 +224,7 @@
+ if [ -z "$DAZUNIT" -a \( -z "$MIDOPTION" -o "$MIDOPTION" = "NOPARALLEL" -o "$SELECT_UNIT" = "AUTO" \) ]
+ then
+ 
+- lockfile -1 -r 10 $MID_WORK/running.lock 	# 2> /dev/null 
++ dotlockfile -r 5 $MID_WORK/running.lock 	# 2> /dev/null 
+  if [ $? != 0 ] ; then
+     DAZUNIT=99
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 5a325fb..72b4916 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ fix_formaterrors.patch
 syskeys.patch
 resolve_gmidas_syms.patch
 system_readline.patch
+dotlockfile.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/eso-midas.git



More information about the debian-science-commits mailing list