diff options
| author | Andreas K. Huettel (dilfridge) <mail@akhuettel.de> | 2011-01-12 22:02:44 +0100 |
|---|---|---|
| committer | Andreas K. Huettel (dilfridge) <mail@akhuettel.de> | 2011-01-12 22:02:44 +0100 |
| commit | 606c77e42a4eadc64ffbf70a3117450fc69d8694 (patch) | |
| tree | 7d92b3a622ae74925838ebb12e7b0a00aca337bb | |
| parent | 7e95dd361ce08e29d8e7217783891a8cb8bef733 (diff) | |
| download | kde-606c77e42a4eadc64ffbf70a3117450fc69d8694.tar.gz kde-606c77e42a4eadc64ffbf70a3117450fc69d8694.tar.bz2 kde-606c77e42a4eadc64ffbf70a3117450fc69d8694.zip | |
[eclass] Make tar failure only an ewarn if I_KNOW_WHAT_I_AM_DOING is set
| -rw-r--r-- | eclass/kde4-meta.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/kde4-meta.eclass b/eclass/kde4-meta.eclass index 8e886208c4f..f908bc72edc 100644 --- a/eclass/kde4-meta.eclass +++ b/eclass/kde4-meta.eclass @@ -245,8 +245,15 @@ kde4-meta_src_extract() { extractlist+=" $(__list_needed_subdirectories)" pushd "${WORKDIR}" > /dev/null + local tarmsgcommand + if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then + tarmsgcommand=ewarn + else + tarmsgcommand=einfo + fi [[ -n ${KDE4_STRICTER} ]] && echo tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} - tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway" + tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ${tarmsgcommand} "tar extract command failed at least partially - continuing anyway" + unset tarmsgcommand # Default $S is based on $P; rename the extracted directory to match $S if necessary mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" |
