Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-patatt for openSUSE:Factory 
checked in at 2021-06-04 00:33:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-patatt (Old)
 and      /work/SRC/openSUSE:Factory/.python-patatt.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-patatt"

Fri Jun  4 00:33:48 2021 rev:2 rq:897115 version:0.4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-patatt/python-patatt.changes      
2021-06-01 10:39:07.236982502 +0200
+++ /work/SRC/openSUSE:Factory/.python-patatt.new.1898/python-patatt.changes    
2021-06-04 00:34:07.760969068 +0200
@@ -1,0 +2,6 @@
+Thu Jun  3 07:36:44 UTC 2021 - Jiri Slaby <jsl...@suse.cz>
+
+- update to 0.4.4
+  * Fix lookups for uncommitted keys
+
+-------------------------------------------------------------------

Old:
----
  patatt-0.4.3.tar.asc
  patatt-0.4.3.tar.gz

New:
----
  patatt-0.4.4.tar.asc
  patatt-0.4.4.tar.gz

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

Other differences:
------------------
++++++ python-patatt.spec ++++++
--- /var/tmp/diff_new_pack.P0mrXC/_old  2021-06-04 00:34:09.600974367 +0200
+++ /var/tmp/diff_new_pack.P0mrXC/_new  2021-06-04 00:34:09.600974367 +0200
@@ -19,7 +19,7 @@
 %define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-patatt
-Version:        0.4.3
+Version:        0.4.4
 Release:        0
 Summary:        Cryptographic patch attestation for the masses
 License:        MIT-0

++++++ patatt-0.4.3.tar.gz -> patatt-0.4.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/patatt-0.4.3/patatt/__init__.py 
new/patatt-0.4.4/patatt/__init__.py
--- old/patatt-0.4.3/patatt/__init__.py 2021-05-26 15:53:43.000000000 +0200
+++ new/patatt-0.4.4/patatt/__init__.py 2021-05-28 16:10:52.000000000 +0200
@@ -47,7 +47,7 @@
 KEYCACHE = dict()
 
 # My version
-__VERSION__ = '0.4.3'
+__VERSION__ = '0.4.4'
 MAX_SUPPORTED_FORMAT_VERSION = 1
 
 
@@ -723,19 +723,21 @@
         parts = source.split(':', 4)
         if len(parts) < 4:
             raise ConfigurationError('Invalid ref, must have at least 3 
colons: %s' % source)
-        gittop = parts[1]
+        gitrepo = parts[1]
         gitref = parts[2]
         gitsub = parts[3]
-        if not gittop:
-            gittop = get_git_toplevel()
-        if not gittop:
-            raise KeyError('Not in a git tree, so cannot use a ref: source')
-
-        gittop = os.path.expanduser(gittop)
-        if gittop.find('$') >= 0:
-            gittop = os.path.expandvars(gittop)
-        if os.path.isdir(os.path.join(gittop, '.git')):
-            gittop = os.path.join(gittop, '.git')
+        if not gitrepo:
+            gitrepo = get_git_toplevel()
+        if not gitrepo:
+            raise KeyError('Not in a git tree, so cannot use a ref:: source')
+
+        gitrepo = os.path.expanduser(gitrepo)
+        if gitrepo.find('$') >= 0:
+            gitrepo = os.path.expandvars(gitrepo)
+        if os.path.isdir(os.path.join(gitrepo, '.git')):
+            gittop = os.path.join(gitrepo, '.git')
+        else:
+            gittop = gitrepo
 
         # it could omit the refspec, meaning "whatever the current ref"
         # grab the key from a fully ref'ed path
@@ -767,8 +769,8 @@
             logger.debug('KEYSRC  : %s', keysrc)
             return out, 'ref:%s:%s' % (gittop, keysrc)
 
-        # Does it exist on disk in gittop?
-        fullpath = os.path.join(gittop, subpath)
+        # Does it exist on disk but hasn't been committed yet?
+        fullpath = os.path.join(gitrepo, subpath)
         if os.path.exists(fullpath):
             with open(fullpath, 'rb') as fh:
                 logger.debug('KEYSRC  : %s', fullpath)

Reply via email to