Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-xattr for openSUSE:Factory 
checked in at 2022-01-05 13:39:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xattr (Old)
 and      /work/SRC/openSUSE:Factory/.python-xattr.new.1896 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xattr"

Wed Jan  5 13:39:24 2022 rev:23 rq:943599 version:0.9.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xattr/python-xattr.changes        
2021-12-09 19:45:01.513116386 +0100
+++ /work/SRC/openSUSE:Factory/.python-xattr.new.1896/python-xattr.changes      
2022-01-05 13:39:41.849522979 +0100
@@ -1,0 +2,8 @@
+Mon Jan  3 12:36:19 UTC 2022 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 0.9.9:
+  * Fix regression in xattr console script
+  * Add -c clear option
+  * Add note about Linux namespace requirement
+
+-------------------------------------------------------------------

Old:
----
  xattr-0.9.8.tar.gz

New:
----
  xattr-0.9.9.tar.gz

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

Other differences:
------------------
++++++ python-xattr.spec ++++++
--- /var/tmp/diff_new_pack.WHS37W/_old  2022-01-05 13:39:42.301523335 +0100
+++ /var/tmp/diff_new_pack.WHS37W/_new  2022-01-05 13:39:42.305523337 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-xattr
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-xattr
-Version:        0.9.8
+Version:        0.9.9
 Release:        0
 Summary:        Python wrapper for extended filesystem attributes
 License:        MIT

++++++ xattr-0.9.8.tar.gz -> xattr-0.9.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.8/CHANGES.txt new/xattr-0.9.9/CHANGES.txt
--- old/xattr-0.9.8/CHANGES.txt 2021-11-20 16:28:33.000000000 +0100
+++ new/xattr-0.9.9/CHANGES.txt 2021-12-11 18:49:54.000000000 +0100
@@ -1,3 +1,12 @@
+Version 0.9.9 released 2021-12-11
+
+* Fix regression in xattr console script
+  https://github.com/xattr/xattr/pull/100
+* Add -c clear option
+  https://github.com/xattr/xattr/pull/98
+* Add note about Linux namespace requirement
+  https://github.com/xattr/xattr/pull/96
+
 Version 0.9.8 released 2021-11-19
 
 * Update build to use Github Actions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.8/PKG-INFO new/xattr-0.9.9/PKG-INFO
--- old/xattr-0.9.8/PKG-INFO    2021-11-20 16:28:36.953554600 +0100
+++ new/xattr-0.9.9/PKG-INFO    2021-12-11 18:49:57.204231700 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: xattr
-Version: 0.9.8
+Version: 0.9.9
 Summary: Python wrapper for extended filesystem attributes
 Home-page: http://github.com/xattr/xattr
 Author: Bob Ippolito
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.8/README.rst new/xattr-0.9.9/README.rst
--- old/xattr-0.9.8/README.rst  2021-11-20 16:28:33.000000000 +0100
+++ new/xattr-0.9.9/README.rst  2021-12-11 18:49:54.000000000 +0100
@@ -12,3 +12,6 @@
 
 Extended attributes are currently only available on Darwin 8.0+ (Mac OS X 10.4)
 and Linux 2.6+. Experimental support is included for Solaris and FreeBSD.
+
+Note: On Linux, custom xattr keys need to be prefixed with the `user`
+namespace, ie: `user.your_attr`.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.8/setup.py new/xattr-0.9.9/setup.py
--- old/xattr-0.9.8/setup.py    2021-11-20 16:28:33.000000000 +0100
+++ new/xattr-0.9.9/setup.py    2021-12-11 18:49:54.000000000 +0100
@@ -5,7 +5,7 @@
 
 from setuptools import setup
 
-VERSION = '0.9.8'
+VERSION = '0.9.9'
 DESCRIPTION = "Python wrapper for extended filesystem attributes"
 LONG_DESCRIPTION = """
 Extended attributes extend the basic attributes of files and directories
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.8/xattr/__init__.py 
new/xattr-0.9.9/xattr/__init__.py
--- old/xattr-0.9.8/xattr/__init__.py   2021-11-20 16:28:33.000000000 +0100
+++ new/xattr-0.9.9/xattr/__init__.py   2021-12-11 18:49:54.000000000 +0100
@@ -7,7 +7,7 @@
 that exposes these extended attributes.
 """
 
-__version__ = '0.9.8'
+__version__ = '0.9.9'
 
 from .compat import integer_types
 from .lib import (XATTR_NOFOLLOW, XATTR_CREATE, XATTR_REPLACE,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.8/xattr/tool.py 
new/xattr-0.9.9/xattr/tool.py
--- old/xattr-0.9.8/xattr/tool.py       2021-11-20 16:28:33.000000000 +0100
+++ new/xattr-0.9.9/xattr/tool.py       2021-12-11 18:49:54.000000000 +0100
@@ -49,11 +49,13 @@
     print("       %s -p [-slz] attr_name file [file ...]" % (name,))
     print("       %s -w [-sz] attr_name attr_value file [file ...]" % (name,))
     print("       %s -d [-s] attr_name file [file ...]" % (name,))
+    print("       %s -c [-s] file [file ...]" % (name,))
     print("")
     print("The first form lists the names of all xattrs on the given file(s).")
     print("The second form (-p) prints the value of the xattr attr_name.")
     print("The third form (-w) sets the value of the xattr attr_name to 
attr_value.")
     print("The fourth form (-d) deletes the xattr attr_name.")
+    print("The fifth form (-c) deletes (clears) all xattrs.")
     print("")
     print("options:")
     print("  -h: print this help")
@@ -87,9 +89,9 @@
     return ''.join(result)
 
 
-def main(argv):
+def main(argv=sys.argv):
     try:
-        (optargs, args) = getopt.getopt(argv[1:], "hlpwdzs", ["help"])
+        (optargs, args) = getopt.getopt(argv[1:], "hlpwdzsc", ["help"])
     except getopt.GetoptError as e:
         return usage(e)
 
@@ -98,10 +100,11 @@
     read = False
     write = False
     delete = False
+    clear = False
     nofollow = False
     compress = lambda x: x
     decompress = compress
-    status = 0
+    errors = []
 
     for opt, arg in optargs:
         if opt in ("-h", "--help"):
@@ -112,23 +115,27 @@
             nofollow = True
         elif opt == "-p":
             read = True
-            if write or delete:
-                return usage("-p not allowed with -w or -d")
+            if write or delete or clear:
+                return usage("-p not allowed with -w, -d or -c")
         elif opt == "-w":
             write = True
-            if read or delete:
-                return usage("-w not allowed with -p or -d")
+            if read or delete or clear:
+                return usage("-w not allowed with -p, -d or -c")
         elif opt == "-d":
             delete = True
-            if read or write:
-                return usage("-d not allowed with -p or -w")
+            if read or write or clear:
+                return usage("-d not allowed with -p, -w or -c")
+        elif opt == "-c":
+            clear = True
+            if read or write or delete:
+                return usage("-c not allowed with -p, -w or -d")
         elif opt == "-z":
             compress = zlib.compress
             decompress = zlib.decompress
 
-    if write or delete:
+    if write or delete or clear:
         if long_format:
-            return usage("-l not allowed with -w or -p")
+            return usage("-l not allowed with -w, -d or -c")
 
     if read or write or delete:
         if not args:
@@ -140,6 +147,9 @@
             return usage("No attr_value")
         attr_value = args.pop(0).encode('utf-8')
 
+    if len(args) == 0:
+        return usage("No file")
+
     if len(args) > 1:
         multiple_files = True
     else:
@@ -151,6 +161,7 @@
 
     for filename in args:
         def onError(e):
+            errors.append(e)
             if not os.path.exists(filename):
                 sys.stderr.write("No such file: %s\n" % (filename,))
             else:
@@ -179,6 +190,13 @@
                 onError("No such xattr: %s" % (attr_name,))
                 continue
 
+        elif clear:
+            try:
+                attrs.clear()
+            except (IOError, OSError) as e:
+                onError(e)
+                continue
+
         else:
             try:
                 if read:
@@ -230,7 +248,7 @@
                     else:
                         print("".join((file_prefix, attr_name)))
 
-    return status
+    return 1 if errors else 0
 
 if __name__ == "__main__":
     sys.exit(main(sys.argv))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.8/xattr.egg-info/PKG-INFO 
new/xattr-0.9.9/xattr.egg-info/PKG-INFO
--- old/xattr-0.9.8/xattr.egg-info/PKG-INFO     2021-11-20 16:28:36.000000000 
+0100
+++ new/xattr-0.9.9/xattr.egg-info/PKG-INFO     2021-12-11 18:49:57.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: xattr
-Version: 0.9.8
+Version: 0.9.9
 Summary: Python wrapper for extended filesystem attributes
 Home-page: http://github.com/xattr/xattr
 Author: Bob Ippolito

Reply via email to