EAPI values.
svn path=/main/trunk/; revision=12596
local y
local myfail
local tar_opts=""
+ local eapi=${EAPI:-0}
[ -z "$*" ] && die "Nothing passed to the 'unpack' command"
for x in "$@"; do
fi
;;
xz)
- if [ "${y}" == "tar" ]; then
- xz -dc "${srcdir}${x}" | tar xof - ${tar_opts}
- assert "$myfail"
+ if hasq $eapi 0 1 2 ; then
+ vecho "unpack ${x}: file format not recognized. Ignoring."
else
- xz -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
+ if [ "${y}" == "tar" ]; then
+ xz -dc "${srcdir}${x}" | tar xof - ${tar_opts}
+ assert "$myfail"
+ else
+ xz -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
+ fi
fi
;;
*)
eerror(l, phase=mydo, key=mysettings.mycpv)
return rval
+_testing_eapis = frozenset(["3_pre1"])
_deprecated_eapis = frozenset(["2_pre3", "2_pre2", "2_pre1"])
def _eapi_is_deprecated(eapi):
if _eapi_is_deprecated(eapi):
return True
+ if eapi in _testing_eapis:
+ return True
+
try:
eapi = int(eapi)
except ValueError: