Hello community,
here is the log from the commit of package yast2-nfs-client for
openSUSE:Factory checked in at 2020-01-30 09:40:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-nfs-client (Old)
and /work/SRC/openSUSE:Factory/.yast2-nfs-client.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-nfs-client"
Thu Jan 30 09:40:25 2020 rev:83 rq:766899 version:4.2.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-nfs-client/yast2-nfs-client.changes
2020-01-20 22:49:59.935217818 +0100
+++
/work/SRC/openSUSE:Factory/.yast2-nfs-client.new.26092/yast2-nfs-client.changes
2020-01-30 09:41:20.237488066 +0100
@@ -1,0 +2,7 @@
+Thu Jan 23 15:41:17 UTC 2020 - Josef Reidinger <[email protected]>
+
+- fix return code for cli `yast2 nfs list` (bsc#1150070)
+- Add error message when delete failed due to not found entry
+- 4.2.6
+
+-------------------------------------------------------------------
Old:
----
yast2-nfs-client-4.2.5.tar.bz2
New:
----
yast2-nfs-client-4.2.6.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-nfs-client.spec ++++++
--- /var/tmp/diff_new_pack.dNicyh/_old 2020-01-30 09:41:21.057488505 +0100
+++ /var/tmp/diff_new_pack.dNicyh/_new 2020-01-30 09:41:21.061488506 +0100
@@ -17,7 +17,7 @@
Name: yast2-nfs-client
-Version: 4.2.5
+Version: 4.2.6
Release: 0
Url: https://github.com/yast/yast-nfs-client
Summary: YaST2 - NFS Configuration
++++++ yast2-nfs-client-4.2.5.tar.bz2 -> yast2-nfs-client-4.2.6.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-nfs-client-4.2.5/package/yast2-nfs-client.changes
new/yast2-nfs-client-4.2.6/package/yast2-nfs-client.changes
--- old/yast2-nfs-client-4.2.5/package/yast2-nfs-client.changes 2020-01-20
08:17:44.000000000 +0100
+++ new/yast2-nfs-client-4.2.6/package/yast2-nfs-client.changes 2020-01-24
14:43:03.000000000 +0100
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Thu Jan 23 15:41:17 UTC 2020 - Josef Reidinger <[email protected]>
+
+- fix return code for cli `yast2 nfs list` (bsc#1150070)
+- Add error message when delete failed due to not found entry
+- 4.2.6
+
+-------------------------------------------------------------------
Fri Jan 17 12:49:20 UTC 2020 - José Iván López González <[email protected]>
- Delegates mount/unmount actions to yast2-storage-ng.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-nfs-client-4.2.5/package/yast2-nfs-client.spec
new/yast2-nfs-client-4.2.6/package/yast2-nfs-client.spec
--- old/yast2-nfs-client-4.2.5/package/yast2-nfs-client.spec 2020-01-20
08:17:44.000000000 +0100
+++ new/yast2-nfs-client-4.2.6/package/yast2-nfs-client.spec 2020-01-24
14:43:03.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-nfs-client
-Version: 4.2.5
+Version: 4.2.6
Release: 0
Url: https://github.com/yast/yast-nfs-client
Summary: YaST2 - NFS Configuration
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-nfs-client-4.2.5/src/clients/nfs.rb
new/yast2-nfs-client-4.2.6/src/clients/nfs.rb
--- old/yast2-nfs-client-4.2.5/src/clients/nfs.rb 2020-01-20
08:17:44.000000000 +0100
+++ new/yast2-nfs-client-4.2.6/src/clients/nfs.rb 2020-01-24
14:43:03.000000000 +0100
@@ -35,14 +35,15 @@
"actions" => {
"list" => {
# TODO: summary is probably better...
- "handler" => fun_ref(
+ "handler" => fun_ref(
method(:NfsListHandler),
"boolean (map)"
),
# command line action help
- "help" => _(
+ "help" => _(
"List configured NFS mounts"
- )
+ ),
+ "readonly" => true
},
"add" => {
"handler" => fun_ref(method(:NfsAddHandler), "boolean (map)"),
@@ -133,12 +134,12 @@
# CLI action handler.
# Print summary in command line
# @param [Hash] options command options
- # @return false so that Write is not called in non-interactive mode
+ # @return true
def NfsListHandler(_options)
nfs_entries = deep_copy(Nfs.nfs_entries)
if Ops.less_than(Builtins.size(nfs_entries), 1)
CommandLine.Print(Summary.NotConfigured)
- return false
+ return true
end
items = []
Builtins.foreach(FstabTableItems(nfs_entries)) do |i|
@@ -165,7 +166,7 @@
{}
)
)
- false
+ true
end
# CLI action handler.
@@ -334,6 +335,12 @@
end
Nfs.nfs_entries = deep_copy(nfs_entries)
+
+ if !deleted
+ # TRANSLATORS %s is mountpoint that is not found in nfs client
configuration.
+ CommandLine.Print(format(_("NFS mount '%s' not found."), spec == "" ?
file : spec))
+ end
+
deleted
end
end