summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ob-unpacksource.sh10
1 files changed, 7 insertions, 3 deletions
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
}