# Sanity check syntax errors in init.d scripts
for d in /etc/conf.d /etc/init.d ; do
- [[ -d ${D}/${d} ]] || continue
- for i in "${D}"/${d}/* ; do
+ [[ -d ${ED}/${d} ]] || continue
+ for i in "${ED}"/${d}/* ; do
[[ -L ${i} ]] && continue
+ # if empty conf.d/init.d dir exists (baselayout), then i will be "/etc/conf.d/*" and not exist
+ [[ ! -e ${i} ]] && continue
bash -n "${i}" || die "The init.d file has syntax errors: ${i}"
done
done
out.eerror(line)
sys.exit(exitcode)
elif syncuri[:6]=="cvs://":
- if not os.path.exists("/usr/bin/cvs"):
- print("!!! /usr/bin/cvs does not exist, so CVS support is disabled.")
+ if not os.path.exists(EPREFIX + "/usr/bin/cvs"):
+ print("!!! " + EPREFIX + "/usr/bin/cvs does not exist, so CVS support is disabled.")
- print("!!! Type \"emerge dev-util/cvs\" to enable CVS support.")
+ print("!!! Type \"emerge dev-vcs/cvs\" to enable CVS support.")
sys.exit(1)
cvsroot=syncuri[6:]
cvsdir=os.path.dirname(myportdir)