rm ${rm_opts} "${file}"
return 255
;;
- 2) ( echo "Showing differences between ${ofile} and ${mfile}"
- diff_command "${ofile}" "${mfile}" ) | ${pager}
+ 2) if [ "${using_editor}" == 0 ]; then
+ (
+ echo "Showing differences between ${ofile} and ${mfile}"
+ diff_command "${ofile}" "${mfile}"
+ ) | ${pager}
+ else
+ echo "Beginning of differences between ${ofile} and ${mfile}"
+ diff_command "${ofile}" "${mfile}"
+ echo "End of differences between ${ofile} and ${mfile}"
+ fi
continue
;;
3) break
[[ -z ${mode} ]] && mode=0
[[ -z ${pager} ]] && pager="cat"
-# Sanity check to make sure diff exists and works
-echo > "${TMP}"/.diff-test-1
-echo > "${TMP}"/.diff-test-2
-
-if ! diff_command "${TMP}"/.diff-test-1 "${TMP}"/.diff-test-2 &> /dev/null ; then
- echo "ERROR: '${diff_command}' does not seem to work, aborting"
- exit 1
+if [ "${using_editor}" == 0 ]; then
+ # Sanity check to make sure diff exists and works
+ echo > "${TMP}"/.diff-test-1
+ echo > "${TMP}"/.diff-test-2
+
+ if ! diff_command "${TMP}"/.diff-test-1 "${TMP}"/.diff-test-2 ; then
+ echo "ERROR: '${diff_command}' does not seem to work, aborting"
+ exit 1
+ fi
+else
+ if ! type ${diff_command%% *} >/dev/null; then
+ echo "ERROR: '${diff_command}' does not seem to work, aborting"
+ exit 1
+ fi
fi
#echo "rm_opts: $rm_opts, mv_opts: $mv_opts, cp_opts: $cp_opts"
"lfull" : "Remember report from last run (full listing)"
}
modes=modeshelp.keys()
+modes.sort()
repoman_options={
"--commitmsg" : "Adds a commit message via the command line",
"--commitmsgfile" : "Adds a commit message from the specified file",
print bold(" Usage:"),turquoise(exename),"[",green("options"),"] [",green("mode"),"]"
if helpfulness:
print bold(" Modes:"),turquoise("scan (default)"),
- for x in modes[1:]:
+ for x in modes:
+ if x == "scan":
+ continue
print "|",turquoise(x),
print
print
# arguments used whenever cp is called
cp_opts="-i"
-# pager for use with diff commands (see NOTE_2)
+# pager for use with diff commands
pager="less"
#pager=""
-# For emacs-users
+# For emacs-users (see NOTE_2)
# diff_command="eval emacs -nw --eval=\'\(ediff\ \"%file1\"\ \"%file2\"\)\'"
#using_editor=1
-# vim-users: you CAN use vimdiff for diff_command. (see NOTE_1)
+# vim-users: you CAN use vimdiff for diff_command. (see NOTE_1 and NOTE_2)
#diff_command="vim -d %file1 %file2"
#using_editor=1
# because it is not known what filenames the produced files have (the user can
# choose while using those programs)
-# NOTE_2: Make sure pager is set to "" when using an editor as diff_command!
+# NOTE_2: Make sure using_editor is set to "1" when using an editor as
+# diff_command!
# packages. Do not use it unless absolutely necessary!
#AUTOCLEAN="yes"
#
-# PORTAGE_TMPFS is a location where portage may create temporary files.
-# If specified, portage will use this directory whenever possible
-# for all rapid operations such as lockfiles and transient data.
-# It is _highly_ recommended that this be a tmpfs or ramdisk. Do not
-# set this to anything that does not give a significant performance
-# enhancement and proper FS compliance for locks and read/write.
-# /dev/shm is a glibc mandated tmpfs, and should be a reasonable
-# setting for all linux kernel+glibc based systems.
-#PORTAGE_TMPFS="/dev/shm"
-#
# FEATURES are settings that affect the functionality of portage. Most of
# these settings are for developer use, but some are available to non-
# developers as well.
.B lfull
Remember report from last run (full listing)
.TP
+.B manifest
+Generate a Manifest (fetches files if necessary)
+.TP
.B commit
Scan directory tree for QA issues; if OK, commit via cvs
.SH QA KEYWORDS
self.depcachedir = self.mysettings.depcachedir[:]
- self.tmpfs = self.mysettings["PORTAGE_TMPFS"]
- if self.tmpfs and not os.path.exists(self.tmpfs):
- self.tmpfs = None
- if self.tmpfs and not os.access(self.tmpfs, os.W_OK):
- self.tmpfs = None
- if self.tmpfs and not os.access(self.tmpfs, os.R_OK):
- self.tmpfs = None
-
self.eclassdb = eclass_cache.cache(self.porttree_root,
overlays=self.mysettings["PORTDIR_OVERLAY"].split())
if stat.S_ISREG(file_mode):
myfilelist.append(file_path[len(srcroot):])
elif stat.S_ISLNK(file_mode):
+ # Note: os.walk puts symlinks to directories in the "dirs"
+ # list and it does not traverse them since that could lead
+ # to an infinite recursion loop.
mylinklist.append(file_path[len(srcroot):])
# Preserve old libs if they are still in use