aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-05 21:21:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-05 21:21:05 +0000
commitbafd10fbdbf100e687940848400e07f9923da4cd (patch)
tree32b5f16b2c18c05a58217efb48b44626bbe9a973
parent4676ff10070fa36b7813c2860382064690ef37c5 (diff)
downloadpaludis-bafd10fbdbf100e687940848400e07f9923da4cd.tar.gz
paludis-bafd10fbdbf100e687940848400e07f9923da4cd.tar.xz
Change how unpack is handled
-rw-r--r--ebuild/build_functions.bash5
-rwxr-xr-xebuild/utils/dounpack (renamed from ebuild/utils/unpack)6
2 files changed, 11 insertions, 0 deletions
diff --git a/ebuild/build_functions.bash b/ebuild/build_functions.bash
index a267aac..ec3b129 100644
--- a/ebuild/build_functions.bash
+++ b/ebuild/build_functions.bash
@@ -92,3 +92,8 @@ einstall()
fi
}
+unpack()
+{
+ dounpack ${@} || die "unpack failed"
+}
+
diff --git a/ebuild/utils/unpack b/ebuild/utils/dounpack
index 172eee0..65463d2 100755
--- a/ebuild/utils/unpack
+++ b/ebuild/utils/dounpack
@@ -21,6 +21,12 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
+die()
+{
+ echo "dounpack: error: $@" 1>&2
+ exit 123
+}
+
unpack_one()
{
[[ -z "$1" ]] && die "Bad argument for unpack_one"