Hello community,

here is the log from the commit of package yast2-pkg-bindings for 
openSUSE:Factory checked in at 2017-12-10 18:14:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-pkg-bindings (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-pkg-bindings"

Sun Dec 10 18:14:09 2017 rev:194 rq:555020 version:4.0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-pkg-bindings/yast2-pkg-bindings.changes    
2017-10-28 14:19:52.591517805 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-pkg-bindings.new/yast2-pkg-bindings.changes   
    2017-12-10 18:14:15.204315718 +0100
@@ -1,0 +2,7 @@
+Thu Dec  7 12:03:48 UTC 2017 - lsle...@suse.cz
+
+- Fixed Pkg.ExpandedUrl to return also the password part
+  of the URL (bsc#1067007)
+- 4.0.5
+
+-------------------------------------------------------------------

Old:
----
  yast2-pkg-bindings-4.0.4.tar.bz2

New:
----
  yast2-pkg-bindings-4.0.5.tar.bz2

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

Other differences:
------------------
++++++ yast2-pkg-bindings-devel-doc.spec ++++++
--- /var/tmp/diff_new_pack.oq72sB/_old  2017-12-10 18:14:15.724290952 +0100
+++ /var/tmp/diff_new_pack.oq72sB/_new  2017-12-10 18:14:15.728290760 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        4.0.4
+Version:        4.0.5
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        yast2-pkg-bindings-%{version}.tar.bz2

++++++ yast2-pkg-bindings.spec ++++++
--- /var/tmp/diff_new_pack.oq72sB/_old  2017-12-10 18:14:15.748289809 +0100
+++ /var/tmp/diff_new_pack.oq72sB/_new  2017-12-10 18:14:15.748289809 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        4.0.4
+Version:        4.0.5
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-pkg-bindings-4.0.4.tar.bz2 -> yast2-pkg-bindings-4.0.5.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.0.4/package/yast2-pkg-bindings-devel-doc.spec 
new/yast2-pkg-bindings-4.0.5/package/yast2-pkg-bindings-devel-doc.spec
--- old/yast2-pkg-bindings-4.0.4/package/yast2-pkg-bindings-devel-doc.spec      
2017-10-27 16:58:52.673477779 +0200
+++ new/yast2-pkg-bindings-4.0.5/package/yast2-pkg-bindings-devel-doc.spec      
2017-12-07 13:40:18.000000000 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-pkg-bindings-devel-doc
-Version:        4.0.4
+Version:        4.0.5
 Release:        0
 License:        GPL-2.0
 Group:          Documentation/HTML
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.0.4/package/yast2-pkg-bindings.changes 
new/yast2-pkg-bindings-4.0.5/package/yast2-pkg-bindings.changes
--- old/yast2-pkg-bindings-4.0.4/package/yast2-pkg-bindings.changes     
2017-10-27 16:58:52.673477779 +0200
+++ new/yast2-pkg-bindings-4.0.5/package/yast2-pkg-bindings.changes     
2017-12-07 13:40:18.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Thu Dec  7 12:03:48 UTC 2017 - lsle...@suse.cz
+
+- Fixed Pkg.ExpandedUrl to return also the password part
+  of the URL (bsc#1067007)
+- 4.0.5
+
+-------------------------------------------------------------------
 Fri Oct 27 14:40:23 UTC 2017 - lsle...@suse.cz
 
 - Pkg.ResolvableProperties: return the "register_flavor" product
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-pkg-bindings-4.0.4/package/yast2-pkg-bindings.spec 
new/yast2-pkg-bindings-4.0.5/package/yast2-pkg-bindings.spec
--- old/yast2-pkg-bindings-4.0.4/package/yast2-pkg-bindings.spec        
2017-10-27 16:58:52.673477779 +0200
+++ new/yast2-pkg-bindings-4.0.5/package/yast2-pkg-bindings.spec        
2017-12-07 13:40:18.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-pkg-bindings
-Version:        4.0.4
+Version:        4.0.5
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.0.4/smoke_test_run.rb 
new/yast2-pkg-bindings-4.0.5/smoke_test_run.rb
--- old/yast2-pkg-bindings-4.0.4/smoke_test_run.rb      2017-10-27 
16:58:52.673477779 +0200
+++ new/yast2-pkg-bindings-4.0.5/smoke_test_run.rb      2017-12-07 
13:40:18.000000000 +0100
@@ -71,5 +71,14 @@
 raise "No package found!" if packages.empty?
 puts "OK (found #{packages.size} packages)"
 
+# make sure no URL part is lost by Pkg.ExpandedUrl call (bsc#1067007)
+puts "Checking Pkg.ExpandedUrl..."
+url = "https://user:p...@example.com/path?opt=value";
+expanded_url = Yast::Pkg.ExpandedUrl(url)
+if url != expanded_url
+  raise "Unexpected result: #{expanded_url.inspect}, expected #{url.inspect}"
+end
+puts "OK"
+
 # scan y2log for errors
 check_y2log
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-pkg-bindings-4.0.4/src/PkgFunctions.cc 
new/yast2-pkg-bindings-4.0.5/src/PkgFunctions.cc
--- old/yast2-pkg-bindings-4.0.4/src/PkgFunctions.cc    2017-10-27 
16:58:52.681477779 +0200
+++ new/yast2-pkg-bindings-4.0.5/src/PkgFunctions.cc    2017-12-07 
13:40:18.000000000 +0100
@@ -518,7 +518,8 @@
 
     zypp::RepoVariablesReplacedUrl replacedUrl;
     replacedUrl.raw() = zypp::Url(url->asString()->value());
-    return YCPString(replacedUrl.transformed().asString());
+    // return full URL including the password if present
+    return YCPString(replacedUrl.transformed().asCompleteString());
 }
 
 /**


Reply via email to