my_input=$(read_int)
case ${my_input} in
1) echo "Replacing ${ofile} with ${mfile}"
- if [[ ${USERLAND} == GNU ]]; then
+ if [[ ${USERLAND:-GNU} == GNU ]]; then
chmod --reference="${ofile}" "${mfile}"
else
chmod $(stat -f %Mp%Lp "${ofile}") "${mfile}"
def validate_ebuild_environment(trees):
for myroot in trees:
mysettings = trees[myroot]["vartree"].settings
- if not mysettings.get("ARCH", None):
- print >> sys.stderr, bad("\a!!! ARCH is not set... " + \
+ for var in "ARCH", "USERLAND":
+ if mysettings.get(var):
+ continue
+ print >> sys.stderr, bad(("\a!!! %s is not set... " % var) + \
"Are you missing the '%setc/make.profile' symlink?" % \
mysettings["PORTAGE_CONFIGROOT"])
print >> sys.stderr, bad("\a!!! Is the symlink correct? " + \
# backupenv is for calculated incremental variables.
self.backupenv = os.environ.copy()
- if not local_config:
- # Clean up pollution from portage.data so that it doesn't
- # interfere with repoman.
- self.backupenv.pop("USERLAND", None)
def check_var_directory(varname, var):
if not os.path.isdir(var):
self.configlist.append(os.environ.copy())
self.configdict["env"]=self.configlist[-1]
- if not local_config:
- # Clean up pollution from portage.data so that it doesn't
- # interfere with repoman.
- self.configdict["env"].pop("USERLAND", None)
# make lookuplist for loading package.*
self.lookuplist=self.configlist[:]
" exist. Please rebuild python.\n", noiselevel=-1)
lchown()
-os.environ["USERLAND"]=userland
-
def portage_group_warning():
warn_prefix = bad("*** WARNING *** ")
mylines = [