From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] bitbake-prserv-tool: show error when export file does not exist
Date: Wed, 6 Feb 2013 15:29:10 +0100 [thread overview]
Message-ID: <20130206142910.GY3271@jama> (raw)
In-Reply-To: <1360160618-13505-1-git-send-email-Martin.Jansa@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]
On Wed, Feb 06, 2013 at 03:23:38PM +0100, Martin Jansa wrote:
> * otherwise it shows error about failing import
It fails like this e.g. when someone tries to migrate_localcount without
any entries in cache/bb_persist_data.sqlite3
> 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
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
prev parent reply other threads:[~2013-02-06 14:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 14:23 [PATCH] bitbake-prserv-tool: show error when export file does not exist Martin Jansa
2013-02-06 14:29 ` Martin Jansa [this message]
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=20130206142910.GY3271@jama \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.