commit o2locktop for openSUSE:Factory

2020-02-05 Thread root
Hello community,

here is the log from the commit of package o2locktop for openSUSE:Factory 
checked in at 2020-02-05 19:42:32

Comparing /work/SRC/openSUSE:Factory/o2locktop (Old)
 and  /work/SRC/openSUSE:Factory/.o2locktop.new.26092 (New)


Package is "o2locktop"

Wed Feb  5 19:42:32 2020 rev:3 rq:770118 version:1.0.10+git.1564463799.6f331ba

Changes:

--- /work/SRC/openSUSE:Factory/o2locktop/o2locktop.changes  2019-07-30 
12:39:27.658933023 +0200
+++ /work/SRC/openSUSE:Factory/.o2locktop.new.26092/o2locktop.changes   
2020-02-05 19:43:34.563321244 +0100
@@ -1,0 +2,7 @@
+Mon Aug 26 05:31:57 UTC 2019 - Jan Engelhardt 
+
+- Use better RPM category group.
+- Replace old $RPM_* shell vars by macros.
+- Avoid name repetition in summary.
+
+---



Other differences:
--
++ o2locktop.spec ++
--- /var/tmp/diff_new_pack.dm353K/_old  2020-02-05 19:43:35.935321897 +0100
+++ /var/tmp/diff_new_pack.dm353K/_new  2020-02-05 19:43:35.935321897 +0100
@@ -25,17 +25,17 @@
 %define pyname python
 %endif
 
-Summary:o2locktop is a top-like OCFS2 DLM lock monitor
-License:GPL-2.0-or-later
-Group:  Development/Libraries
 Name:   %{name}
 Version:1.0.10+git.1564463799.6f331ba
 Release:0%{release}
+Summary:A top-like OCFS2 DLM lock monitor
+License:GPL-2.0-or-later
+Group:  System/Monitoring
 Source0:%{name}-%{version}.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Prefix: %{_prefix}
 BuildArch:  noarch
-Url:https://github.com/ganghe/o2locktop
+URL:https://github.com/ganghe/o2locktop
 
 BuildRequires:  %{pyname}
 BuildRequires:  %{pyname}-setuptools
@@ -46,9 +46,17 @@
 #%endif
 
 %description
-o2locktop is a top-like OCFS2 DLM lock monitor, it displays DLM lock usages 
via querying OCFS2 file system statistics from the specified nodes. 
-You can utilize o2locktop to detect the hot files/directories, whose DLM locks 
are frequently referenced among the cluster.
-You can get the maximal wait time per DLM lock, this helps you identify which 
hot files/directories should be decoupled for improving file access performance.
+o2locktop is a top-like OCFS2 DLM lock monitor, it displays DLM lock
+usages via querying OCFS2 file system statistics from the specified
+nodes.
+
+You can utilize o2locktop to detect the hot files/directories, whose
+DLM locks are frequently referenced among the cluster.
+
+You can get the maximal wait time per DLM lock, this helps you
+identify which hot files/directories should be decoupled for
+improving file access performance.
+
 %prep
 %setup -n %{name}-%{version}
 
@@ -56,10 +64,7 @@
 %{pyname} setup.py build
 
 %install
-%{pyname} setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{pyname} setup.py install -O1 --root="%{buildroot}" --record=INSTALLED_FILES
 
 %files -f INSTALLED_FILES
 %defattr(-,root,root)




commit o2locktop for openSUSE:Factory

2019-07-30 Thread root
Hello community,

here is the log from the commit of package o2locktop for openSUSE:Factory 
checked in at 2019-07-30 12:39:25

Comparing /work/SRC/openSUSE:Factory/o2locktop (Old)
 and  /work/SRC/openSUSE:Factory/.o2locktop.new.4126 (New)


Package is "o2locktop"

Tue Jul 30 12:39:25 2019 rev:2 rq:719770 version:1.0.10+git.1564463799.6f331ba

Changes:

--- /work/SRC/openSUSE:Factory/o2locktop/o2locktop.changes  2019-07-26 
12:44:48.98182 +0200
+++ /work/SRC/openSUSE:Factory/.o2locktop.new.4126/o2locktop.changes
2019-07-30 12:39:27.658933023 +0200
@@ -1,0 +2,7 @@
+Tue Jul 30 05:45:33 UTC 2019 - g...@suse.com
+
+- Update to version 1.0.10+git.1564463799.6f331ba:
+  * Fix hostname display problem on python3 (bsc#1143155)
+  * Fix TypeError exception problem on python 2.6.9 (bsc#1143159)
+
+---

Old:

  o2locktop-1.0.10+git.1564033453.8bdc071.tar.bz2

New:

  o2locktop-1.0.10+git.1564463799.6f331ba.tar.bz2



Other differences:
--
++ o2locktop.spec ++
--- /var/tmp/diff_new_pack.3ZuuzJ/_old  2019-07-30 12:39:29.158932774 +0200
+++ /var/tmp/diff_new_pack.3ZuuzJ/_new  2019-07-30 12:39:29.194932768 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -26,13 +26,13 @@
 %endif
 
 Summary: o2locktop is a top-like OCFS2 DLM lock monitor
+License:GPL-2.0-or-later
+Group:  Development/Libraries
 Name: %{name}
-Version: 1.0.10+git.1564033453.8bdc071
+Version:1.0.10+git.1564463799.6f331ba
 Release: 0%{release}
 Source0: %{name}-%{version}.tar.bz2
-License: GPL-2.0-or-later
-Group: Development/Libraries
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Prefix: %{_prefix}
 BuildArch: noarch
 Url: https://github.com/ganghe/o2locktop

++ o2locktop-1.0.10+git.1564033453.8bdc071.tar.bz2 -> 
o2locktop-1.0.10+git.1564463799.6f331ba.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/o2locktop-1.0.10+git.1564033453.8bdc071/o2locktoplib/dlm.py 
new/o2locktop-1.0.10+git.1564463799.6f331ba/o2locktoplib/dlm.py
--- old/o2locktop-1.0.10+git.1564033453.8bdc071/o2locktoplib/dlm.py 
2019-07-25 07:44:13.0 +0200
+++ new/o2locktop-1.0.10+git.1564463799.6f331ba/o2locktoplib/dlm.py 
2019-07-30 07:16:39.0 +0200
@@ -514,9 +514,9 @@
 total_num_str = 
str(decimal.Decimal(total_num).quantize(decimal.Decimal('0.')))
 key_index_str = '--'
 else:
-total_time_str = 
str(decimal.Decimal(total_time).quantize(decimal.Decimal('0.')))
-total_num_str = 
str(decimal.Decimal(total_num).quantize(decimal.Decimal('0.')))
-key_index_str = 
str(decimal.Decimal(key_index).quantize(decimal.Decimal('0.')))
+total_time_str = 
str(decimal.Decimal(str(total_time)).quantize(decimal.Decimal('0.')))
+total_num_str = 
str(decimal.Decimal(str(total_num)).quantize(decimal.Decimal('0.')))
+key_index_str = 
str(decimal.Decimal(str(key_index)).quantize(decimal.Decimal('0.')))
 return total_time_str, total_num_str, key_index_str
 
 def report_once(self):
@@ -592,7 +592,7 @@
 body = "\n".join([body, node_detail_str])
 
 tmp_index = body.rfind("├─")
-body = body[:tmp_index] + "└─" + body[tmp_index+6:]
+body = body[:tmp_index] + "└─" + body[tmp_index+len("└─"):]
 
 if res_ex["total_num"] != 0:
 res_ex["key_index"] = res_ex["total_time"]//res_ex["total_num"]