Hello community,

here is the log from the commit of package obs-service-refresh_patches for 
openSUSE:Factory checked in at 2018-09-18 11:48:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/obs-service-refresh_patches (Old)
 and      /work/SRC/openSUSE:Factory/.obs-service-refresh_patches.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "obs-service-refresh_patches"

Tue Sep 18 11:48:14 2018 rev:9 rq:636203 version:0.3.9+git.1537184752.d624424

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/obs-service-refresh_patches/obs-service-refresh_patches.changes
  2014-03-07 07:05:43.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.obs-service-refresh_patches.new/obs-service-refresh_patches.changes
     2018-09-18 11:48:48.347576381 +0200
@@ -1,0 +2,6 @@
+Mon Sep 17 11:55:40 UTC 2018 - [email protected]
+
+- Update to version 0.3.9+git.1537184752.d624424:
+  * Avoid parsing shell output (boo#1108189)
+
+-------------------------------------------------------------------

Old:
----
  obs-service-refresh_patches-0.3.9+git.1394121974.21d4106.tar.gz

New:
----
  obs-service-refresh_patches-0.3.9+git.1537184752.d624424.tar.gz

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

Other differences:
------------------
++++++ obs-service-refresh_patches.spec ++++++
--- /var/tmp/diff_new_pack.jd325x/_old  2018-09-18 11:48:57.079567384 +0200
+++ /var/tmp/diff_new_pack.jd325x/_new  2018-09-18 11:48:57.083567380 +0200
@@ -19,7 +19,7 @@
 %define service refresh_patches
 
 Name:           obs-service-%{service}
-Version:        0.3.9+git.1394121974.21d4106
+Version:        0.3.9+git.1537184752.d624424
 Release:        0
 Summary:        An OBS source service: Refreshs local patches
 License:        Apache-2.0

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.jd325x/_old  2018-09-18 11:48:57.111567351 +0200
+++ /var/tmp/diff_new_pack.jd325x/_new  2018-09-18 11:48:57.111567351 +0200
@@ -1,6 +1,6 @@
 <servicedata>
   <service name="tar_scm">
     <param 
name="url">https://github.com/openSUSE/obs-service-refresh_patches.git</param>
-    <param name="changesrevision">21d410643c</param>
+    <param 
name="changesrevision">ca402ea51c497ad94b75590fb4036ca79fc031d0</param>
   </service>
 </servicedata>
\ No newline at end of file

++++++ obs-service-refresh_patches-0.3.9+git.1394121974.21d4106.tar.gz -> 
obs-service-refresh_patches-0.3.9+git.1537184752.d624424.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/obs-service-refresh_patches-0.3.9+git.1394121974.21d4106/refresh_patches 
new/obs-service-refresh_patches-0.3.9+git.1537184752.d624424/refresh_patches
--- 
old/obs-service-refresh_patches-0.3.9+git.1394121974.21d4106/refresh_patches    
    2014-03-06 17:06:54.551539072 +0100
+++ 
new/obs-service-refresh_patches-0.3.9+git.1537184752.d624424/refresh_patches    
    2018-09-17 13:45:52.000000000 +0200
@@ -65,6 +65,8 @@
                             stderr=subprocess.STDOUT,
                             stdout=subprocess.PIPE, **kwargs).communicate()[0]
 
+def get_dirs(dir):
+    return [f for f in os.listdir(dir) if os.path.isdir(os.path.join(dir, f))]
 
 def generate_changes_entry(args, basename, refreshed_patches=[], 
dropped_patches=[]):
     if not args.changesauthor:
@@ -159,7 +161,7 @@
             # There's no other way to find out what directory-name the tarball 
will be unpacked to
             # rather than to diff the directory before and after invoking 
quilt (which invokes tar).
             # Well, we could check the tarball contents for the top-most 
directory, but that's not any better...
-            src_dir_contents_pre_tar = silent_popen("ls -l | grep '^d' | awk 
'{print $9}'", shell=True).strip().split("\n")
+            src_dir_contents_pre_tar = get_dirs(".")
 
             output = silent_popen(["quilt", "setup", specfile])
             output_oneline = output.replace("\n", "")
@@ -169,7 +171,7 @@
                 sys.exit(1)
 
             # Now let's find out what we actually untarred to...
-            src_dir_contents_post_tar = silent_popen("ls -l | grep '^d' | awk 
'{print $9}'", shell=True).strip().split("\n")
+            src_dir_contents_post_tar = get_dirs(".")
             for d in src_dir_contents_post_tar:
                 if d not in src_dir_contents_pre_tar:
                     quilt_dir = d  # Found it!


Reply via email to