[yast-commit] r55073 - in /trunk/yast2/library/agents: ag_free_space cfg_backup_freespace.scr system_freespace.scr
![](https://seccdn.libravatar.org/avatar/2e1a2d7374f0eeb790839676bdd1123a.jpg?s=120&d=mm&r=g)
Author: locilka Date: Tue Jan 27 13:27:05 2009 New Revision: 55073 URL: http://svn.opensuse.org/viewcvs/yast?rev=55073&view=rev Log: .backup.free_space renamed to .system.freespace Added: trunk/yast2/library/agents/system_freespace.scr - copied, changed from r55072, trunk/yast2/library/agents/cfg_backup_freespace.scr Removed: trunk/yast2/library/agents/cfg_backup_freespace.scr Modified: trunk/yast2/library/agents/ag_free_space Modified: trunk/yast2/library/agents/ag_free_space URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/agents/ag_free_space?rev=55073&r1=55072&r2=55073&view=diff ============================================================================== --- trunk/yast2/library/agents/ag_free_space (original) +++ trunk/yast2/library/agents/ag_free_space Tue Jan 27 13:27:05 2009 @@ -3,8 +3,8 @@ use ycp; use File::Temp; -# Returns free space in the directory -# @example: SCR::Read(.backup.free_space, "/tmp") +# Returns free space in a directory +# @example: SCR::Read(.system.freespace, "/tmp") -> 'size in bytes' or '-1' while ( <STDIN> ) { my ($command, $path, $directory) = ycp::ParseCommand ($_); @@ -48,7 +48,7 @@ ycp::Return $out[3]; next; } else { - y2error ('Cannot determine the free space - Unknown error'); + y2error ('Cannot determine the free space in "'.$directory.'" - Unknown error: '.$command); ycp::Return -1; next; } Copied: trunk/yast2/library/agents/system_freespace.scr (from r55072, trunk/yast2/library/agents/cfg_backup_freespace.scr) URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/agents/system_freespace.scr?p2=trunk/yast2/library/agents/system_freespace.scr&p1=trunk/yast2/library/agents/cfg_backup_freespace.scr&r1=55072&r2=55073&rev=55073&view=diff ============================================================================== --- trunk/yast2/library/agents/cfg_backup_freespace.scr (original) +++ trunk/yast2/library/agents/system_freespace.scr Tue Jan 27 13:27:05 2009 @@ -12,13 +12,13 @@ * read * * Example: - * Read(.backup.free_space, "/tmp") + * Read(.system.freespace, "/tmp") * (3752236) * - * Read(.backup.free_space, "/abcd1") + * Read(.system.freespace, "/abcd1") * (-1) // Directory does not exist or is not a directory * - * Read(.backup.free_space, "/abcd2") + * Read(.system.freespace, "/abcd2") * (-1) // Cannot find '/bin/df' binary * * Description: @@ -30,7 +30,7 @@ * $Id$ * */ -.backup.free_space +.system.freespace `ag_free_space () -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
locilka@svn.opensuse.org