summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-08-03 14:42:09 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-08-08 21:47:42 +0200
commit8191665432dca1d6cc289185cf7fe32aee0646db (patch)
treea52e0b50e2698710522c8251e4cc41eb89f6601b /eclass/savedconfig.eclass
parentsavedconfig.eclass: Re-use configuration file scheme (diff)
downloadgentoo-8191665432dca1d6cc289185cf7fe32aee0646db.tar.gz
gentoo-8191665432dca1d6cc289185cf7fe32aee0646db.tar.bz2
gentoo-8191665432dca1d6cc289185cf7fe32aee0646db.zip
savedconfig.eclass: Always quote filename in output
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'eclass/savedconfig.eclass')
-rw-r--r--eclass/savedconfig.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/savedconfig.eclass b/eclass/savedconfig.eclass
index f62a6055ffdb..1ea464271aff 100644
--- a/eclass/savedconfig.eclass
+++ b/eclass/savedconfig.eclass
@@ -128,14 +128,14 @@ restore_config() {
fi
done
if [[ -f ${found} ]]; then
- elog "Building using saved configfile ${found}"
+ elog "Building using saved configfile \"${found}\""
if [ $# -gt 0 ]; then
cp -pPR "${found}" "$1" || die "Failed to restore ${found} to $1"
else
die "need to know the restoration filename"
fi
elif [[ -d ${found} ]]; then
- elog "Building using saved config directory ${found}"
+ elog "Building using saved config directory \"${found}\""
local dest=${PWD}
pushd "${found}" > /dev/null
treecopy . "${dest}" || die "Failed to restore ${found} to $1"
@@ -147,7 +147,7 @@ restore_config() {
die "Reading config files failed"
fi
ewarn "No saved config to restore - please remove USE=savedconfig or"
- ewarn "provide a configuration file in ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PN}"
+ ewarn "provide a configuration file in ${PORTAGE_CONFIGROOT%/}/etc/portage/savedconfig/${CATEGORY}/${PN}"
ewarn "Your config file(s) will not be used this time"
fi
}