Hello community,

here is the log from the commit of package health-check for openSUSE:Leap:15.2 
checked in at 2020-03-10 17:14:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/health-check (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.health-check.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "health-check"

Tue Mar 10 17:14:19 2020 rev:19 rq:783218 version:0.03.06

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/health-check/health-check.changes      
2020-01-17 12:01:26.292503997 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.health-check.new.26092/health-check.changes   
2020-03-10 17:14:23.657434696 +0100
@@ -1,0 +2,22 @@
+Sun Mar  8 13:19:50 UTC 2020 - Martin Hauke <[email protected]>
+
+- Supplement against bash-completion, not bash
+
+-------------------------------------------------------------------
+Sun Mar  8 12:52:57 UTC 2020 - Martin Hauke <[email protected]>
+
+- Drop SLE12 compat ifdef
+
+-------------------------------------------------------------------
+Wed Feb 26 19:34:58 UTC 2020 - Martin Hauke <[email protected]>
+
+- Update to version 0.03.06
+  * Add bash completion script
+
+-------------------------------------------------------------------
+Mon Jan 13 21:17:54 UTC 2020 - Martin Hauke <[email protected]>
+
+- Update to version 0.03.05
+  * pid: sanity check for null return from basename call
+
+-------------------------------------------------------------------

Old:
----
  health-check-0.03.04.tar.gz

New:
----
  health-check-0.03.06.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ health-check.spec ++++++
--- /var/tmp/diff_new_pack.eAI7HT/_old  2020-03-10 17:14:23.977434795 +0100
+++ /var/tmp/diff_new_pack.eAI7HT/_new  2020-03-10 17:14:23.981434796 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package health-check
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017, Martin Hauke <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:           health-check
-Version:        0.03.04
+Version:        0.03.06
 Release:        0
 Summary:        Process monitoring tool
 License:        GPL-2.0-or-later
@@ -36,12 +36,23 @@
 events generated and I/O operations of the given processes.
 It can be used to diagnose unhealthy bad processes.
 
+%package bash-completion
+Summary:        Bash Completion for %{name}
+Group:          System/Benchmark
+Requires:       %{name} = %{version}
+Requires:       bash-completion
+Supplements:    (health-check and bash-completion)
+BuildArch:      noarch
+
+%description bash-completion
+Bash completion script for %{name}.
+
 %prep
 %setup -q
 
 %build
 export CFLAGS="%{optflags}"
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install
@@ -51,4 +62,7 @@
 %{_bindir}/health-check
 %{_mandir}/man8/health-check.8%{?ext_man}
 
+%files bash-completion
+%{_datadir}/bash-completion/completions/%{name}
+
 %changelog

++++++ health-check-0.03.04.tar.gz -> health-check-0.03.06.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/Makefile 
new/health-check-0.03.06/Makefile
--- old/health-check-0.03.04/Makefile   2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/Makefile   2020-02-26 18:28:50.000000000 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2013-2019 Canonical, Ltd.
+# Copyright (C) 2013-2020 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -15,7 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
-VERSION=0.03.04
+VERSION=0.03.06
 #
 # Codename "Where have all my cycles gone?"
 #
@@ -45,6 +45,7 @@
 
 BINDIR=/usr/bin
 MANDIR=/usr/share/man/man8
+BASHDIR=/usr/share/bash-completion/completions
 
 OBJS = list.o pid.o proc.o net.o syscall.o timeval.o \
        fnotify.o cpustat.o mem.o ctxt-switch.o health-check.o
@@ -88,7 +89,7 @@
        rm -rf health-check-$(VERSION)
        mkdir health-check-$(VERSION)
        cp -rp Makefile *.c *.h .travis.yml scripts health-check.8 \
-               COPYING health-check-$(VERSION)
+               bash-completion COPYING health-check-$(VERSION)
        tar -zcf health-check-$(VERSION).tar.gz health-check-$(VERSION)
        rm -rf health-check-$(VERSION)
 
@@ -102,3 +103,5 @@
        cp health-check ${DESTDIR}${BINDIR}
        mkdir -p ${DESTDIR}${MANDIR}
        cp health-check.8.gz ${DESTDIR}${MANDIR}
+       mkdir -p ${DESTDIR}${BASHDIR}
+       cp bash-completion/health-check ${DESTDIR}${BASHDIR}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/bash-completion/health-check 
new/health-check-0.03.06/bash-completion/health-check
--- old/health-check-0.03.04/bash-completion/health-check       1970-01-01 
01:00:00.000000000 +0100
+++ new/health-check-0.03.06/bash-completion/health-check       2020-02-26 
18:28:50.000000000 +0100
@@ -0,0 +1,53 @@
+# health-check tab completion for bash.
+#
+# Copyright (C) 2020 Canonical
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
+
+_health-check()
+{
+       local cur prev
+       _init_completion || return
+
+       case "$prev" in
+       '-d')   COMPREPLY=( $(compgen -W "duration" -- $cur) )
+               return 0
+               ;;
+        '-p')  COMPREPLY=( $(compgen -W '$(command ps axo pid | sed 1d) ' $cur 
) )
+               return 0
+               ;;
+       '-m')   COMPREPLY=( $(compgen -W "maxcalls" -- $cur) )
+               return 0
+               ;;
+       '-o')   _filedir
+               return 0
+               ;;
+        '-u')  COMPREPLY=( $(compgen -W '$(command ps axo user | sed 1d | sort 
| uniq) ' $cur ) )
+               return 0
+               ;;
+       esac
+
+       case "$cur" in
+                -*)
+                        OPTS="-b -c -d -f -h -p -m -o -r -u -v -w -W"
+                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+                        return 0
+                        ;;
+        esac
+       return 0
+}
+
+# load the completion
+complete -F _health-check health-check
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/cpustat.c 
new/health-check-0.03.06/cpustat.c
--- old/health-check-0.03.04/cpustat.c  2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/cpustat.c  2020-02-26 18:28:50.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/ctxt-switch.c 
new/health-check-0.03.06/ctxt-switch.c
--- old/health-check-0.03.04/ctxt-switch.c      2019-12-16 14:01:05.000000000 
+0100
+++ new/health-check-0.03.06/ctxt-switch.c      2020-02-26 18:28:50.000000000 
+0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/fnotify.c 
new/health-check-0.03.06/fnotify.c
--- old/health-check-0.03.04/fnotify.c  2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/fnotify.c  2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/health-check.c 
new/health-check-0.03.06/health-check.c
--- old/health-check-0.03.04/health-check.c     2019-12-16 14:01:05.000000000 
+0100
+++ new/health-check-0.03.06/health-check.c     2020-02-26 18:28:51.000000000 
+0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/json.c 
new/health-check-0.03.06/json.c
--- old/health-check-0.03.04/json.c     2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/json.c     2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/list.c 
new/health-check-0.03.06/list.c
--- old/health-check-0.03.04/list.c     2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/list.c     2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/mem.c 
new/health-check-0.03.06/mem.c
--- old/health-check-0.03.04/mem.c      2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/mem.c      2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/net.c 
new/health-check-0.03.06/net.c
--- old/health-check-0.03.04/net.c      2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/net.c      2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/pid.c 
new/health-check-0.03.06/pid.c
--- old/health-check-0.03.04/pid.c      2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/pid.c      2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -90,7 +90,11 @@
                        *ptr = '\0';
        }
 
-       return strdup(basename(buffer));
+       ptr = basename(buffer);
+       if (ptr)
+               return strdup(ptr);
+
+       return strdup(buffer);
 }
 
 /*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/proc.c 
new/health-check-0.03.06/proc.c
--- old/health-check-0.03.04/proc.c     2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/proc.c     2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/syscall.c 
new/health-check-0.03.06/syscall.c
--- old/health-check-0.03.04/syscall.c  2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/syscall.c  2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/health-check-0.03.04/timeval.c 
new/health-check-0.03.06/timeval.c
--- old/health-check-0.03.04/timeval.c  2019-12-16 14:01:05.000000000 +0100
+++ new/health-check-0.03.06/timeval.c  2020-02-26 18:28:51.000000000 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013-2019 Canonical, Ltd.
+ * Copyright (C) 2013-2020 Canonical, Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License


Reply via email to