Module dispatch_conf
source code
|
|
|
|
|
|
|
|
file_archive(archive,
curconf,
newconf,
mrgconf)
Archive existing config to the archive-dir, bumping old versions out
of the way into .# versions (log-rotate style). |
source code
|
|
|
|
rcs_archive_post_process(archive)
Check in the archive file with the .dist.new suffix on the branch and
remove the one with the .dist suffix. |
source code
|
|
|
|
file_archive_post_process(archive)
Rename the archive file with the .dist.new suffix to a .dist suffix |
source code
|
|
|
|
RCS_BRANCH = '1.1.1'
|
|
|
RCS_LOCK = 'rcs -ko -M -l'
|
|
|
RCS_PUT = 'ci -t-"Archived config file." -m"dispatch-conf upda...
|
|
|
RCS_GET = 'co'
|
|
|
RCS_MERGE = 'rcsmerge -p -r1.1.1 \'%s\' > \'%s\''
|
|
|
DIFF3_MERGE = 'diff3 -mE \'%s\' \'%s\' \'%s\' > \'%s\''
|
Imports:
S_IWRITE,
ST_MTIME,
S_IRGRP,
S_IFLNK,
ST_INO,
S_IXOTH,
ST_UID,
S_ISSOCK,
S_ISLNK,
S_IMODE,
S_IXUSR,
S_IRUSR,
ST_NLINK,
S_IFBLK,
S_IFDIR,
ST_ATIME,
S_ISFIFO,
S_ISUID,
S_IRWXU,
S_IFCHR,
S_ISGID,
S_IFREG,
S_ISREG,
S_IREAD,
S_IFIFO,
S_IFSOCK,
S_ISCHR,
S_ISVTX,
ST_MODE,
S_ISDIR,
S_ENFMT,
S_IEXEC,
ST_CTIME,
S_IWOTH,
S_IXGRP,
S_IRWXG,
S_IFMT,
S_IWUSR,
S_ISBLK,
ST_GID,
S_IROTH,
S_IWGRP,
S_IRWXO,
ST_DEV,
ST_SIZE,
os,
sys,
commands,
shutil,
portage
rcs_archive(archive,
curconf,
newconf,
mrgconf)
| source code
|
Archive existing config in rcs (on trunk). Then, if mrgconf is
specified and an old branch version exists, merge the user's changes and
the distributed changes and put the result into mrgconf. Lastly, if
newconf was specified, leave it in the archive dir with a .dist.new
suffix along with the last 1.1.1 branch version with a .dist suffix.
|
file_archive(archive,
curconf,
newconf,
mrgconf)
| source code
|
Archive existing config to the archive-dir, bumping old versions out
of the way into .# versions (log-rotate style). Then, if mrgconf was
specified and there is a .dist version, merge the user's changes and the
distributed changes and put the result into mrgconf. Lastly, if newconf
was specified, archive it as a .dist.new version (which gets moved to the
.dist version at the end of the processing).
|
RCS_PUT
- Value:
'ci -t-"Archived config file." -m"dispatch-conf update."'
|
|