From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] bitbake-prserv-tool: show error when export file does not exist
Date: Wed, 6 Feb 2013 15:23:38 +0100 [thread overview]
Message-ID: <1360160618-13505-1-git-send-email-Martin.Jansa@gmail.com> (raw)
* otherwise it shows error about failing import
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
scripts/bitbake-prserv-tool | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/bitbake-prserv-tool b/scripts/bitbake-prserv-tool
index 4654e6d..96a3470 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
--
1.8.1.2
next reply other threads:[~2013-02-06 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 14:23 Martin Jansa [this message]
2013-02-06 14:29 ` [PATCH] bitbake-prserv-tool: show error when export file does not exist Martin Jansa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1360160618-13505-1-git-send-email-Martin.Jansa@gmail.com \
--to=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox