Hello community,
here is the log from the commit of package openSUSE-release-tools for
openSUSE:Factory checked in at 2018-01-30 15:44:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openSUSE-release-tools (Old)
and /work/SRC/openSUSE:Factory/.openSUSE-release-tools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openSUSE-release-tools"
Tue Jan 30 15:44:32 2018 rev:46 rq:570853 version:20180130.40c4c14
Changes:
--------
---
/work/SRC/openSUSE:Factory/openSUSE-release-tools/openSUSE-release-tools.changes
2018-01-29 15:00:25.582199851 +0100
+++
/work/SRC/openSUSE:Factory/.openSUSE-release-tools.new/openSUSE-release-tools.changes
2018-01-30 15:44:39.597887046 +0100
@@ -1,0 +2,14 @@
+Tue Jan 30 07:39:21 UTC 2018 - [email protected]
+
+- Update to version 20180130.40c4c14:
+ * status: fallback to request_age() even if no comment.
+
+-------------------------------------------------------------------
+Tue Jan 30 03:32:08 UTC 2018 - [email protected]
+
+- Update to version 20180129.5a472eb:
+ * osclib/core: request_age() return delta and handle Request object.
+ * create_test_dvds: do not lock vim-data
+ * fcc_submitter: skip revoked request
+
+-------------------------------------------------------------------
Old:
----
openSUSE-release-tools-20180126.574cfe8.obscpio
New:
----
openSUSE-release-tools-20180130.40c4c14.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ openSUSE-release-tools.spec ++++++
--- /var/tmp/diff_new_pack.wpBZrz/_old 2018-01-30 15:44:40.329852876 +0100
+++ /var/tmp/diff_new_pack.wpBZrz/_new 2018-01-30 15:44:40.333852689 +0100
@@ -20,7 +20,7 @@
%define source_dir osc-plugin-factory
%define announcer_filename factory-package-news
Name: openSUSE-release-tools
-Version: 20180126.574cfe8
+Version: 20180130.40c4c14
Release: 0
Summary: Tools to aid in staging and release work for openSUSE/SUSE
License: GPL-2.0+ AND MIT
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.wpBZrz/_old 2018-01-30 15:44:40.381850448 +0100
+++ /var/tmp/diff_new_pack.wpBZrz/_new 2018-01-30 15:44:40.381850448 +0100
@@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/openSUSE/osc-plugin-factory.git</param>
- <param
name="changesrevision">574cfe8e1245e98922150a574df1a27dbc9c98af</param>
+ <param
name="changesrevision">40c4c14db52af9b7fac403aa0ee3f0c62980d86f</param>
</service>
</servicedata>
++++++ openSUSE-release-tools-20180126.574cfe8.obscpio ->
openSUSE-release-tools-20180130.40c4c14.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20180126.574cfe8/create_test_Factory_dvd-1.testcase
new/openSUSE-release-tools-20180130.40c4c14/create_test_Factory_dvd-1.testcase
---
old/openSUSE-release-tools-20180126.574cfe8/create_test_Factory_dvd-1.testcase
2018-01-26 21:49:32.000000000 +0100
+++
new/openSUSE-release-tools-20180130.40c4c14/create_test_Factory_dvd-1.testcase
2018-01-30 08:34:06.000000000 +0100
@@ -49,5 +49,4 @@
job lock name patterns-base-x11_opt
job lock name readline-doc
job lock name SuSEfirewall2
-job lock name vim-data
job lock name gettext-runtime-mini
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20180126.574cfe8/devel-project.py
new/openSUSE-release-tools-20180130.40c4c14/devel-project.py
--- old/openSUSE-release-tools-20180126.574cfe8/devel-project.py
2018-01-26 21:49:32.000000000 +0100
+++ new/openSUSE-release-tools-20180130.40c4c14/devel-project.py
2018-01-30 08:34:06.000000000 +0100
@@ -109,7 +109,7 @@
withfullhistory=True)
for request in requests:
action = request.actions[0]
- age = request_age(request)
+ age = request_age(request).days
if age < args.min_age:
continue
@@ -134,7 +134,7 @@
if action.type != 'submit':
continue
- age = request_age(request)
+ age = request_age(request).days
if age < args.min_age:
continue
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20180126.574cfe8/fcc_submitter.py
new/openSUSE-release-tools-20180130.40c4c14/fcc_submitter.py
--- old/openSUSE-release-tools-20180126.574cfe8/fcc_submitter.py
2018-01-26 21:49:32.000000000 +0100
+++ new/openSUSE-release-tools-20180130.40c4c14/fcc_submitter.py
2018-01-30 08:34:06.000000000 +0100
@@ -173,7 +173,7 @@
return packages
def get_request_list(self, package):
- return osc.core.get_request_list(self.apiurl, self.to_prj, package,
req_state=('new', 'review', 'declined'))
+ return osc.core.get_request_list(self.apiurl, self.to_prj, package,
req_state=('new', 'review', 'declined', 'revoked'))
def get_link(self, project, package):
try:
@@ -365,7 +365,7 @@
# make sure there is no request against same package
request = self.get_request_list(package)
if request:
- logging.debug("There is a request to %s / %s already or it
has been declined, skip!"%(package, self.to_prj))
+ logging.debug("There is a request to %s / %s already or it
has been declined/revoked, skip!"%(package, self.to_prj))
else:
logging.info("%d - Preparing submit %s to %s"%(i, package,
self.to_prj))
# get devel project
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20180126.574cfe8/osclib/core.py
new/openSUSE-release-tools-20180130.40c4c14/osclib/core.py
--- old/openSUSE-release-tools-20180126.574cfe8/osclib/core.py 2018-01-26
21:49:32.000000000 +0100
+++ new/openSUSE-release-tools-20180130.40c4c14/osclib/core.py 2018-01-30
08:34:06.000000000 +0100
@@ -10,6 +10,7 @@
from osc.core import http_GET
from osc.core import makeurl
from osc.core import owner
+from osc.core import Request
from osc.core import show_package_meta
from osc.core import show_project_meta
from osclib.memoize import memoize
@@ -166,6 +167,9 @@
return project, package
def request_age(request):
- created = date_parse(request.find('history').get('when'))
- delta = datetime.utcnow() - created
- return delta.total_seconds()
+ if isinstance(request, Request):
+ created = request.statehistory[0].when
+ else:
+ created = request.find('history').get('when')
+ created = date_parse(created)
+ return datetime.utcnow() - created
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20180126.574cfe8/osclib/request_splitter.py
new/openSUSE-release-tools-20180130.40c4c14/osclib/request_splitter.py
--- old/openSUSE-release-tools-20180126.574cfe8/osclib/request_splitter.py
2018-01-26 21:49:32.000000000 +0100
+++ new/openSUSE-release-tools-20180130.40c4c14/osclib/request_splitter.py
2018-01-30 08:34:06.000000000 +0100
@@ -107,7 +107,7 @@
history = request.find('history')
if history is not None:
- age = request_age(request)
+ age = request_age(request).total_seconds()
request.set('aged', str(age >= self.request_age_threshold))
request_type = request.find('./action').get('type')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/openSUSE-release-tools-20180126.574cfe8/status.py
new/openSUSE-release-tools-20180130.40c4c14/status.py
--- old/openSUSE-release-tools-20180126.574cfe8/status.py 2018-01-26
21:49:32.000000000 +0100
+++ new/openSUSE-release-tools-20180130.40c4c14/status.py 2018-01-30
08:34:06.000000000 +0100
@@ -44,7 +44,7 @@
requests = search(apiurl, queries, request=xpath)['request']
for request in requests:
- age = request_age(request)
+ age = request_age(request).total_seconds()
request_debug(request, age, threshold)
if age <= threshold:
@@ -61,9 +61,6 @@
# Could check to see that a review has been performed in the last week.
return True
- if not comment:
- return False
-
all_comment = True
for request in requests:
kwargs = {}
@@ -77,7 +74,7 @@
elif comment:
kwargs['request_id'] = request.get('id')
- age = request_age(request)
+ age = request_age(request).total_seconds()
request_debug(request, age, threshold)
comment_age = check_comment(apiurl, bot, **kwargs)
if comment_age:
++++++ openSUSE-release-tools.obsinfo ++++++
--- /var/tmp/diff_new_pack.wpBZrz/_old 2018-01-30 15:44:41.065818517 +0100
+++ /var/tmp/diff_new_pack.wpBZrz/_new 2018-01-30 15:44:41.065818517 +0100
@@ -1,5 +1,5 @@
name: openSUSE-release-tools
-version: 20180126.574cfe8
-mtime: 1516999772
-commit: 574cfe8e1245e98922150a574df1a27dbc9c98af
+version: 20180130.40c4c14
+mtime: 1517297646
+commit: 40c4c14db52af9b7fac403aa0ee3f0c62980d86f