Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r55073 - in /trunk/yast2/library/agents: ag_free_space cfg_backup_freespace.scr system_freespace.scr
  • From: locilka@xxxxxxxxxxxxxxxx
  • Date: Tue, 27 Jan 2009 12:27:05 -0000
  • Message-id: <E1LRn21-00085J-Fi@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages