Hello community,

here is the log from the commit of package openSUSE-release-tools for 
openSUSE:Factory checked in at 2019-01-21 10:57:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openSUSE-release-tools (Old)
 and      /work/SRC/openSUSE:Factory/.openSUSE-release-tools.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openSUSE-release-tools"

Mon Jan 21 10:57:15 2019 rev:160 rq:666392 version:20190116.9ab4c3c

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/openSUSE-release-tools/openSUSE-release-tools.changes
    2019-01-15 09:16:59.750200851 +0100
+++ 
/work/SRC/openSUSE:Factory/.openSUSE-release-tools.new.28833/openSUSE-release-tools.changes
 2019-01-21 10:57:37.355488470 +0100
@@ -1,0 +2,6 @@
+Wed Jan 16 06:06:43 UTC 2019 - [email protected]
+
+- Update to version 20190116.9ab4c3c:
+  * accept_command: add additional version number to OSRT:ProductVersion
+
+-------------------------------------------------------------------

Old:
----
  openSUSE-release-tools-20190110.a9eeeb0.obscpio

New:
----
  openSUSE-release-tools-20190116.9ab4c3c.obscpio

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

Other differences:
------------------
++++++ openSUSE-release-tools.spec ++++++
--- /var/tmp/diff_new_pack.R3T4ji/_old  2019-01-21 10:57:38.267487278 +0100
+++ /var/tmp/diff_new_pack.R3T4ji/_new  2019-01-21 10:57:38.267487278 +0100
@@ -20,7 +20,7 @@
 %define source_dir openSUSE-release-tools
 %define announcer_filename factory-package-news
 Name:           openSUSE-release-tools
-Version:        20190110.a9eeeb0
+Version:        20190116.9ab4c3c
 Release:        0
 Summary:        Tools to aid in staging and release work for openSUSE/SUSE
 License:        GPL-2.0-or-later AND MIT

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.R3T4ji/_old  2019-01-21 10:57:38.299487236 +0100
+++ /var/tmp/diff_new_pack.R3T4ji/_new  2019-01-21 10:57:38.299487236 +0100
@@ -1,6 +1,6 @@
 <servicedata>
   <service name="tar_scm">
     <param 
name="url">https://github.com/openSUSE/openSUSE-release-tools.git</param>
-    <param 
name="changesrevision">a9eeeb0a98fde79c0667ac74fb8e0ff18239a01d</param>
+    <param 
name="changesrevision">2ae694a9124629d788cfe814b7d8d4a6f6baf41d</param>
   </service>
 </servicedata>

++++++ openSUSE-release-tools-20190110.a9eeeb0.obscpio -> 
openSUSE-release-tools-20190116.9ab4c3c.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/openSUSE-release-tools-20190110.a9eeeb0/osclib/accept_command.py 
new/openSUSE-release-tools-20190116.9ab4c3c/osclib/accept_command.py
--- old/openSUSE-release-tools-20190110.a9eeeb0/osclib/accept_command.py        
2019-01-10 09:24:40.000000000 +0100
+++ new/openSUSE-release-tools-20190116.9ab4c3c/osclib/accept_command.py        
2019-01-16 07:01:21.000000000 +0100
@@ -13,6 +13,8 @@
 from osc.core import http_GET, http_PUT, http_DELETE, http_POST
 from osc.core import delete_package, search, set_devel_project
 from osclib.config_command import ConfigCommand
+from osclib.core import attribute_value_save
+from osclib.core import attribute_value_load
 from osclib.core import source_file_load
 from osclib.core import source_file_save
 from datetime import date
@@ -279,6 +281,11 @@
                     source_file_save(self.api.apiurl, project, package, 
'_link', link)
         return True
 
+    def update_version_attribute(self, project, version):
+        version_attr = attribute_value_load(self.api.apiurl, project, 
'ProductVersion')
+        if version_attr != version:
+            attribute_value_save(self.api.apiurl, project, 'ProductVersion', 
version)
+
     def update_factory_version(self):
         """Update project (Factory, 13.2, ...) version if is necessary."""
 
@@ -287,6 +294,7 @@
 
         project = self.api.project
         curr_version = date.today().strftime('%Y%m%d')
+        update_version_attr = False
         url = self.api.makeurl(['source', project], {'view': 'productlist'})
 
         products = ET.parse(http_GET(url)).getroot()
@@ -298,8 +306,12 @@
             new_product = re.sub(r'<version>\d{8}</version>', 
'<version>%s</version>' % curr_version, product_spec)
 
             if product_spec != new_product:
+                update_version_attr = True
                 http_PUT(url + '?comment=Update+version', data=new_product)
 
+        if update_version_attr:
+            self.update_version_attribute(project, curr_version)
+
         service = {'cmd': 'runservice'}
 
         ports_prjs = ['PowerPC', 'ARM', 'zSystems' ]
@@ -307,6 +319,8 @@
         for ports in ports_prjs:
             project = self.api.project + ':' + ports
             if self.api.item_exists(project):
+                if update_version_attr:
+                    self.update_version_attribute(project, curr_version)
                 baseurl = ['source', project, '000product']
                 url = self.api.makeurl(baseurl, query=service)
                 self.api.retried_POST(url)

++++++ openSUSE-release-tools.obsinfo ++++++
--- /var/tmp/diff_new_pack.R3T4ji/_old  2019-01-21 10:57:38.763486629 +0100
+++ /var/tmp/diff_new_pack.R3T4ji/_new  2019-01-21 10:57:38.767486624 +0100
@@ -1,5 +1,5 @@
 name: openSUSE-release-tools
-version: 20190110.a9eeeb0
-mtime: 1547108680
-commit: a9eeeb0a98fde79c0667ac74fb8e0ff18239a01d
+version: 20190116.9ab4c3c
+mtime: 1547618481
+commit: 9ab4c3c728464aa4de5dc0f5ce8869570d89b4a4
 


Reply via email to