Hello community, here is the log from the commit of package yast2-samba-client for openSUSE:Factory checked in at 2019-04-08 10:34:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-samba-client (Old) and /work/SRC/openSUSE:Factory/.yast2-samba-client.new.3908 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-samba-client" Mon Apr 8 10:34:34 2019 rev:99 rq:691734 version:4.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-samba-client/yast2-samba-client.changes 2019-02-24 18:03:50.155765676 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-samba-client.new.3908/yast2-samba-client.changes 2019-04-08 10:34:35.627223076 +0200 @@ -1,0 +2,6 @@ +Fri Apr 5 08:24:37 UTC 2019 - jreidinger <jreidin...@suse.com> + +- Replace YaPI calls (fate#323734) +- 4.2.0 + +------------------------------------------------------------------- Old: ---- yast2-samba-client-4.1.1.tar.bz2 New: ---- yast2-samba-client-4.2.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-samba-client.spec ++++++ --- /var/tmp/diff_new_pack.EZAW1k/_old 2019-04-08 10:34:36.271223195 +0200 +++ /var/tmp/diff_new_pack.EZAW1k/_new 2019-04-08 10:34:36.275223197 +0200 @@ -17,7 +17,7 @@ Name: yast2-samba-client -Version: 4.1.1 +Version: 4.2.0 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -38,6 +38,9 @@ # SuSEFirewall2 replaced by firewalld (fate#323460) Requires: yast2 >= 4.0.39 +# LanItems::find_dhcp_ifaces +Requires: yast2-network >= 4.2.0 + BuildArch: noarch Requires: yast2-python3-bindings >= 4.0.8 ++++++ yast2-samba-client-4.1.1.tar.bz2 -> yast2-samba-client-4.2.0.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-samba-client-4.1.1/Dockerfile new/yast2-samba-client-4.2.0/Dockerfile --- old/yast2-samba-client-4.1.1/Dockerfile 2019-02-20 15:52:34.000000000 +0100 +++ new/yast2-samba-client-4.2.0/Dockerfile 2019-04-05 10:36:24.000000000 +0200 @@ -1,3 +1,3 @@ -FROM yastdevel/ruby +FROM registry.opensuse.org/yast/head/containers/yast-ruby:latest COPY . /usr/src/app diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-samba-client-4.1.1/package/yast2-samba-client.changes new/yast2-samba-client-4.2.0/package/yast2-samba-client.changes --- old/yast2-samba-client-4.1.1/package/yast2-samba-client.changes 2019-02-20 15:52:34.000000000 +0100 +++ new/yast2-samba-client-4.2.0/package/yast2-samba-client.changes 2019-04-05 10:36:24.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Apr 5 08:24:37 UTC 2019 - jreidinger <jreidin...@suse.com> + +- Replace YaPI calls (fate#323734) +- 4.2.0 + +------------------------------------------------------------------- Tue Feb 5 20:12:18 UTC 2019 - David Mulder <dmul...@suse.com> - Perform the workgroup lookup using samba python bindings; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-samba-client-4.1.1/package/yast2-samba-client.spec new/yast2-samba-client-4.2.0/package/yast2-samba-client.spec --- old/yast2-samba-client-4.1.1/package/yast2-samba-client.spec 2019-02-20 15:52:34.000000000 +0100 +++ new/yast2-samba-client-4.2.0/package/yast2-samba-client.spec 2019-04-05 10:36:24.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-samba-client -Version: 4.1.1 +Version: 4.2.0 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -36,6 +36,9 @@ # SuSEFirewall2 replaced by firewalld (fate#323460) Requires: yast2 >= 4.0.39 +# LanItems::find_dhcp_ifaces +Requires: yast2-network >= 4.2.0 + BuildArchitectures: noarch Requires: yast2-ruby-bindings >= 1.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-samba-client-4.1.1/src/modules/SambaAD.pm new/yast2-samba-client-4.2.0/src/modules/SambaAD.pm --- old/yast2-samba-client-4.1.1/src/modules/SambaAD.pm 2019-02-20 15:52:34.000000000 +0100 +++ new/yast2-samba-client-4.2.0/src/modules/SambaAD.pm 2019-04-05 10:36:24.000000000 +0200 @@ -39,10 +39,10 @@ YaST::YCP::Import ("FileUtils"); YaST::YCP::Import ("Kerberos"); +YaST::YCP::Import ("LanItems"); YaST::YCP::Import ("Mode"); YaST::YCP::Import ("SCR"); YaST::YCP::Import ("SambaConfig"); -YaST::YCP::Import ("YaPI::NETWORK"); YaST::YCP::Import ("SambaAPI"); use constant { @@ -71,13 +71,9 @@ my ($self, $force) = @_; return $dhcp_client if (defined $dhcp_client) && !$force; - - my $network = YaPI::NETWORK->Read (); - $dhcp_client = TRUE; - foreach my $iface (values %{$network->{"interfaces"}}) { - $dhcp_client = $dhcp_client && (($iface->{"bootproto"} || "") =~ m/^dhcp[46]?$/); - } - return $dhcp_client; + LanItems->Read(); + my @dhcp_interfaces = LanItems->find_dhcp_ifaces(); + return scalar (@dhcp_interfaces) > 0; } # Read the list of available machine accounts in the current domain diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-samba-client-4.1.1/src/modules/SambaNetJoin.pm new/yast2-samba-client-4.2.0/src/modules/SambaNetJoin.pm --- old/yast2-samba-client-4.1.1/src/modules/SambaNetJoin.pm 2019-02-20 15:52:34.000000000 +0100 +++ new/yast2-samba-client-4.2.0/src/modules/SambaNetJoin.pm 2019-04-05 10:36:24.000000000 +0200 @@ -18,13 +18,13 @@ textdomain "samba-client"; our %TYPEINFO; +YaST::YCP::Import("DNS"); YaST::YCP::Import("Package"); YaST::YCP::Import("SCR"); YaST::YCP::Import("SambaConfig"); YaST::YCP::Import("SambaAD"); YaST::YCP::Import("SambaWinbind"); YaST::YCP::Import("String"); -YaST::YCP::Import("YaPI::NETWORK"); my %TestJoinCache; @@ -143,12 +143,14 @@ return unless ($adapt_dns && $server); - my $network = YaPI::NETWORK->Read (); - my $nameservers = $network->{"dns"}{"nameservers"} || []; - push @$nameservers, $server; - $network->{"dns"}{"nameservers"} = $nameservers; + DNS->Read(); + my @nameservers = DNS->nameservers; + push @nameservers, $server; + DNS->nameservers(@nameservers); + DNS->modified(1); + DNS->Write(); - return YaPI::NETWORK->Write({ "dns" => $network->{"dns"} }); + return {'exit'=>0, 'error'=>''}; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-samba-client-4.1.1/src/modules/SambaNmbLookup.pm new/yast2-samba-client-4.2.0/src/modules/SambaNmbLookup.pm --- old/yast2-samba-client-4.1.1/src/modules/SambaNmbLookup.pm 2019-02-20 15:52:34.000000000 +0100 +++ new/yast2-samba-client-4.2.0/src/modules/SambaNmbLookup.pm 2019-04-05 10:36:24.000000000 +0200 @@ -7,7 +7,7 @@ # $Id$ # # Representation of the configuration of samba-client. -# Input and output routines. +# Input and output routines. package SambaNmbLookup;