Author: jsuchome Date: Fri Apr 15 11:33:15 2011 New Revision: 63782 URL: http://svn.opensuse.org/viewcvs/yast?rev=63782&view=rev Log: comments Modified: trunk/snapper/src/Snapper.ycp Modified: trunk/snapper/src/Snapper.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/snapper/src/Snapper.ycp?rev=63782&r1=63781&r2=63782&view=diff ============================================================================== --- trunk/snapper/src/Snapper.ycp (original) +++ trunk/snapper/src/Snapper.ycp Fri Apr 15 11:33:15 2011 @@ -42,7 +42,7 @@ // global list of all snapshot global list<map> snapshots = []; -global string snapshots_path = "/snapshots"; // FIXME +global string snapshots_path = "/snapshots"; global map selected_snapshot = $[]; @@ -196,6 +196,9 @@ return true; } +/** + * Return the given file mode as octal number + */ integer GetFileMode (string file) { map out = (map) SCR::Execute (.target.bash_output, "/bin/stat --printf=%a " + file); @@ -204,6 +207,9 @@ /** * Copy given files from selected snapshot to current filesystem + * @param snapshot_num snapshot identifier + * @param files list of full paths to files + * @return success */ global boolean RestoreFiles (integer snapshot_num, list<string> files) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org