From d65a3d116c7fe90b8332a994b7456b3ebb236ee2 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Mon, 25 Dec 2006 05:27:45 +0000 Subject: [PATCH] Docstrings for mergeme... svn path=/main/trunk/; revision=5386 --- pym/portage.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pym/portage.py b/pym/portage.py index b3eb4a581..cb6ce4de4 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7094,6 +7094,32 @@ class dblink: return 0 def mergeme(self,srcroot,destroot,outfile,secondhand,stufftomerge,cfgfiledict,thismtime): + """ + + This function handles actual merging of the package contents to the livefs. + It also handles config protection. + + @param srcroot: Where are we copying files from (usually ${D}) + @type srcroot: String (Path) + @param destroot: Typically ${ROOT} + @type destroot: String (Path) + @param outfile: File to log operations to + @type outfile: File Object + @param secondhand: A set of items to merge in pass two (usually + or symlinks that point to non-existing files that may get merged later) + @type secondhand: List + @param stufftomerge: Either a diretory to merge, or a list of items. + @type stufftomerge: String or List + @param cfgfiledict: { File:mtime } mapping for config_protected files + @type cfgfiledict: Dictionary + @param thismtime: The current time (typically long(time.time()) + @type thismtime: Long + @rtype: None or Boolean + @returns: + 1. True on failure + 2. None otherwise + + """ from os.path import sep, join srcroot = normalize_path(srcroot).rstrip(sep) + sep destroot = normalize_path(destroot).rstrip(sep) + sep -- 2.26.2