Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54946 - /trunk/packager/src/modules/WebpinPackageSearch.ycp
  • From: locilka@xxxxxxxxxxxxxxxx
  • Date: Fri, 23 Jan 2009 13:17:59 -0000
  • Message-id: <E1LQLv5-0002Zw-8Q@xxxxxxxxxxxxxxxx>
Author: locilka
Date: Fri Jan 23 14:17:59 2009
New Revision: 54946

URL: http://svn.opensuse.org/viewcvs/yast?rev=54946&view=rev
Log:
Handle emty HTTP reply correctly


Modified:
trunk/packager/src/modules/WebpinPackageSearch.ycp

Modified: trunk/packager/src/modules/WebpinPackageSearch.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/WebpinPackageSearch.ycp?rev=54946&r1=54945&r2=54946&view=diff
==============================================================================
--- trunk/packager/src/modules/WebpinPackageSearch.ycp (original)
+++ trunk/packager/src/modules/WebpinPackageSearch.ycp Fri Jan 23 14:17:59 2009
@@ -359,6 +359,11 @@
return nil;
}

+ if (FileUtils::GetSize (temporary_file) <= 0) {
+ y2milestone ("Empty file: %1", temporary_file);
+ return nil;
+ }
+
map search_result = (map) SCR::Read (.anyxml, temporary_file);

y2debug ("Search result: %1", search_result);

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

< Previous Next >
This Thread
  • No further messages