diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2013-02-06 15:23:38 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 16:52:19 +0000 |
commit | 120df7a533db599ed42af52ebfdfdb20a4fcd7c7 (patch) | |
tree | 2514a6c6d07904530798a2ccfcb7f257de773b34 | |
parent | cda0111c6fd7b6158143474587a0280e122ae562 (diff) | |
download | tizen-distro-120df7a533db599ed42af52ebfdfdb20a4fcd7c7.tar.gz tizen-distro-120df7a533db599ed42af52ebfdfdb20a4fcd7c7.tar.bz2 tizen-distro-120df7a533db599ed42af52ebfdfdb20a4fcd7c7.zip |
bitbake-prserv-tool: show error when export file does not exist
* otherwise it shows error about failing import
(From OE-Core rev: 65b2f068719f4cd6e1bd438e8714c2977bd93535)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/bitbake-prserv-tool | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/bitbake-prserv-tool b/scripts/bitbake-prserv-tool index 4654e6d421..96a34702c9 100755 --- a/scripts/bitbake-prserv-tool +++ b/scripts/bitbake-prserv-tool @@ -61,8 +61,16 @@ do_migrate_localcount () clean_cache echo "Exporting LOCALCOUNT to AUTOINCs..." bitbake -R conf/migrate_localcount.conf -p - [ ! $? -eq 0 ] && echo "Exporting failed!" && exit 1 + [ ! $? -eq 0 ] && echo "Exporting to file $df failed!" && exit 1 + if [ -e $df ]; + then + echo "Exporting to file $df succeeded!" + else + echo "Exporting to file $df failed!" + exit 1 + fi + echo "Importing generated AUTOINC entries..." [ -e $df ] && do_import $df |