Mailinglist Archive: yast-commit (176 mails)

< Previous Next >
[yast-commit] r67729 - /trunk/yast2/library/modules/FileUtils.ycp
Author: gs
Date: Wed Mar 28 11:57:48 2012
New Revision: 67729

URL: http://svn.opensuse.org/viewcvs/yast?rev=67729&view=rev
Log:
revert the change in Exists(); it's not needed to check
for nil here because Read(.target.stat, target)
never returns nil - BUT testsuites (e.g. backup module)
fail due to the change

Modified:
trunk/yast2/library/modules/FileUtils.ycp

Modified: trunk/yast2/library/modules/FileUtils.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/modules/FileUtils.ycp?rev=67729&r1=67728&r2=67729&view=diff
==============================================================================
--- trunk/yast2/library/modules/FileUtils.ycp (original)
+++ trunk/yast2/library/modules/FileUtils.ycp Wed Mar 28 11:57:48 2012
@@ -34,7 +34,7 @@
global define boolean Exists (string target) {
map info = (map) SCR::Read(.target.stat, target);

- if (info != $[] && info != nil) {
+ if (info != $[]) {
return true;
}
return false;

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages