Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package azote for openSUSE:Factory checked 
in at 2022-11-02 12:47:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azote (Old)
 and      /work/SRC/openSUSE:Factory/.azote.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azote"

Wed Nov  2 12:47:16 2022 rev:14 rq:1032796 version:1.9.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/azote/azote.changes      2022-06-01 
17:35:53.902828453 +0200
+++ /work/SRC/openSUSE:Factory/.azote.new.2275/azote.changes    2022-11-02 
12:48:02.897844205 +0100
@@ -1,0 +2,7 @@
+Wed Nov  2 08:38:18 UTC 2022 - Michael Vetter <[email protected]>
+
+- Update to 1.9.6:
+  * added 2 lines to check if the /usr/share/backgrounds/nwg-shell path
+    exists, and set it as the sample_dir, if so.
+
+-------------------------------------------------------------------

Old:
----
  azote-1.9.5.tar.gz

New:
----
  azote-1.9.6.tar.gz

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

Other differences:
------------------
++++++ azote.spec ++++++
--- /var/tmp/diff_new_pack.qeS5Hj/_old  2022-11-02 12:48:03.677848164 +0100
+++ /var/tmp/diff_new_pack.qeS5Hj/_new  2022-11-02 12:48:03.681848184 +0100
@@ -18,7 +18,7 @@
 
 %{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 Name:           azote
-Version:        1.9.5
+Version:        1.9.6
 Release:        0
 Summary:        Wallpaper manager for Sway, i3 and some other WMs
 License:        GPL-3.0-only

++++++ azote-1.9.5.tar.gz -> azote-1.9.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.5/.travis.yml new/azote-1.9.6/.travis.yml
--- old/azote-1.9.5/.travis.yml 2022-06-01 10:10:52.000000000 +0200
+++ new/azote-1.9.6/.travis.yml 2022-11-01 00:47:50.000000000 +0100
@@ -1,10 +1,7 @@
 language: python
 python:
-   - "3.4"
-   - "3.5"
-   - "3.6"
-   - "3.7"
    - "3.8"
+   - "3.9"
 
 add-ons:
    apt:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.5/azote/main.py 
new/azote-1.9.6/azote/main.py
--- old/azote-1.9.5/azote/main.py       2022-06-01 10:10:52.000000000 +0200
+++ new/azote-1.9.6/azote/main.py       2022-11-01 00:47:50.000000000 +0100
@@ -275,7 +275,7 @@
         options_box.set_border_width(0)
         options_box.set_orientation(Gtk.Orientation.HORIZONTAL)
         self.pack_start(options_box, True, False, 0)
-        
+
         check_button = Gtk.CheckButton()
         check_button.set_active(self.include)
         check_button.set_tooltip_text(common.lang["include_when_splitting"])
@@ -317,7 +317,7 @@
 
     def switch_included(self, ckb):
         self.include = ckb.get_active()
-    
+
     def clear_color_selection(self):
         # If not on sway / swaybg, we have no color_button in UI
         if common.sway or common.env['wayland']:
@@ -448,6 +448,7 @@
 
         # Prepare, save and execute the shell script for swaybg. It'll be 
placed in ~/.azotebg for further use.
         batch_content = ['#!/usr/bin/env bash', 'pkill swaybg']
+        outputs = []
         for box in common.display_boxes_list:
             if box.color:
                 # if a color chosen, the wallpaper won't appear
@@ -462,8 +463,12 @@
                 else:
                     display_name = box.display_name
 
+                outputs.append(display_name)
+
                 # Escape some special characters which would mess up the script
-                wallpaper_path=box.wallpaper_path.replace('\\', 
'\\\\').replace("$", "\$").replace("`", "\\`").replace('"', '\\"')
+                wallpaper_path = box.wallpaper_path.replace('\\', 
'\\\\').replace("$", "\$").replace("`",
+                                                                               
                      "\\`").replace('"',
+                                                                               
                                     '\\"')
 
                 batch_content.append(
                     "swaybg -o '{}' -i \"{}\" -m {} &".format(display_name, 
wallpaper_path, box.mode))
@@ -485,7 +490,19 @@
                 restore_from.append(entry)
 
         # save to ~/.azotebg
+        if os.path.isfile(common.cmd_file):
+            with open(common.cmd_file, 'r') as f:
+                oldazotebg = f.readlines()
+                oldazotebg = [line.rstrip() for line in oldazotebg]
+            for item in oldazotebg.copy():
+                for output in outputs:
+                    if output in item:
+                        oldazotebg.remove(item)
+
+            batch_content = list(dict.fromkeys(batch_content + oldazotebg))
+
         with open(common.cmd_file, 'w') as f:
+            # print(batch_content)
             for item in batch_content:
                 f.write("%s\n" % item)
         # make the file executable
@@ -871,12 +888,12 @@
         # Restore saved wallpapers if any
         f_name = "swaybg.json" if common.sway or common.env['wayland'] else 
"feh.json"
         f_path = os.path.join(common.data_home, f_name)
-        
+
         if os.path.isfile(f_path):
             restore_from = load_json(f_path)
         else:
             restore_from = None
-        
+
         # Buttons below represent displays preview
         common.display_boxes_list = []
         for display in common.displays:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.5/azote/tools.py 
new/azote-1.9.6/azote/tools.py
--- old/azote-1.9.5/azote/tools.py      2022-06-01 10:10:52.000000000 +0200
+++ new/azote-1.9.6/azote/tools.py      2022-11-01 00:47:50.000000000 +0100
@@ -366,6 +366,9 @@
     if os.path.isdir('/usr/share/backgrounds/archlabs'):
         common.sample_dir = '/usr/share/backgrounds/archlabs'
 
+    if os.path.isdir('/usr/share/backgrounds/nwg-shell'):
+        common.sample_dir = '/usr/share/backgrounds/nwg-shell'
+
     common.settings = Settings()
     if common.settings.clear_thumbnails:
         clear_thumbnails(clear_all=True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.5/setup.py new/azote-1.9.6/setup.py
--- old/azote-1.9.5/setup.py    2022-06-01 10:10:52.000000000 +0200
+++ new/azote-1.9.6/setup.py    2022-11-01 00:47:50.000000000 +0100
@@ -8,7 +8,7 @@
 
 setup(
     name='azote',
-    version='1.9.5',
+    version='1.9.6',
     description='Wallpaper manager for Sway, i3 and some other WMs',
     packages=['azote'],
     include_package_data=True,
@@ -16,6 +16,6 @@
     license='GPL3',
     author='Piotr Miller',
     author_email='[email protected]',
-    python_requires='>=3.4.0',
+    python_requires='>=3.8.0',
     install_requires=[]
 )

Reply via email to