From c20bbe68307a79c5a08ece9cb7b752ff1555c73d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 24 Oct 2012 00:06:29 -0400 Subject: Look both ways before unpacking sources. --- (limited to 'src') diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh index baea705..9954454 100644 --- a/src/ob-unpacksource.sh +++ b/src/ob-unpacksource.sh @@ -37,10 +37,14 @@ main() ob_init_package '..' ob_parse_package_metadata -c '.opkbuild.cache' - if [ -d '../src' ]; then - unpack_native + if [ -d 'src' ]; then + ob_info "$(ob_get_msg 'already_unpacked')" else - unpack_upstream + if [ -d '../src' ]; then + unpack_native + else + unpack_upstream + fi fi } -- cgit v0.9.1