* [PATCH] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs
@ 2012-03-30 9:50 Martin Jansa
2012-03-30 10:42 ` Martin Jansa
2012-03-30 10:55 ` [PATCHv2] " Martin Jansa
0 siblings, 2 replies; 6+ messages in thread
From: Martin Jansa @ 2012-03-30 9:50 UTC (permalink / raw)
To: openembedded-core
* log_check can find some files with ERR or Fail substring e.g. in "Source: " field
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/classes/rootfs_ipk.bbclass | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 13bd4bf..8685fa3 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -128,9 +128,11 @@ list_installed_packages() {
get_package_filename() {
info=`opkg-cl ${IPKG_ARGS} info $1 | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" || true`
+ set +x
name=`echo "${info}" | awk '/^Package/ {printf $2"_"}'`
name=$name`echo "${info}" | awk -F: '/^Version/ {printf $NF"_"}' | sed 's/^\s*//g'`
name=$name`echo "${info}" | awk '/^Archi/ {print $2".ipk"}'`
+ set -x
fullname=`find ${DEPLOY_DIR_IPK} -name "$name" || true`
if [ "$fullname" = "" ] ; then
--
1.7.8.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs
2012-03-30 9:50 [PATCH] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs Martin Jansa
@ 2012-03-30 10:42 ` Martin Jansa
2012-03-30 10:55 ` [PATCHv2] " Martin Jansa
1 sibling, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2012-03-30 10:42 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]
On Fri, Mar 30, 2012 at 11:50:01AM +0200, Martin Jansa wrote:
> * log_check can find some files with ERR or Fail substring e.g. in "Source: " field
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta/classes/rootfs_ipk.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
> index 13bd4bf..8685fa3 100644
> --- a/meta/classes/rootfs_ipk.bbclass
> +++ b/meta/classes/rootfs_ipk.bbclass
> @@ -128,9 +128,11 @@ list_installed_packages() {
>
> get_package_filename() {
> info=`opkg-cl ${IPKG_ARGS} info $1 | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" || true`
> + set +x
This needs to be before opkg-cl call as set -x prints info assignment
too.
Will resend v2 after someone confirms it's fine now (I don't have test
case for this here).
> name=`echo "${info}" | awk '/^Package/ {printf $2"_"}'`
> name=$name`echo "${info}" | awk -F: '/^Version/ {printf $NF"_"}' | sed 's/^\s*//g'`
> name=$name`echo "${info}" | awk '/^Archi/ {print $2".ipk"}'`
> + set -x
>
> fullname=`find ${DEPLOY_DIR_IPK} -name "$name" || true`
> if [ "$fullname" = "" ] ; then
> --
> 1.7.8.5
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCHv2] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs
2012-03-30 9:50 [PATCH] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs Martin Jansa
2012-03-30 10:42 ` Martin Jansa
@ 2012-03-30 10:55 ` Martin Jansa
2012-03-30 18:10 ` Denys Dmytriyenko
2012-04-03 23:23 ` Saul Wold
1 sibling, 2 replies; 6+ messages in thread
From: Martin Jansa @ 2012-03-30 10:55 UTC (permalink / raw)
To: openembedded-core
* log_check can find some files with ERR or Fail substring e.g. in "Source: " field
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/classes/rootfs_ipk.bbclass | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 13bd4bf..cbc63f0 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -127,10 +127,12 @@ list_installed_packages() {
}
get_package_filename() {
+ set +x
info=`opkg-cl ${IPKG_ARGS} info $1 | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" || true`
name=`echo "${info}" | awk '/^Package/ {printf $2"_"}'`
name=$name`echo "${info}" | awk -F: '/^Version/ {printf $NF"_"}' | sed 's/^\s*//g'`
name=$name`echo "${info}" | awk '/^Archi/ {print $2".ipk"}'`
+ set -x
fullname=`find ${DEPLOY_DIR_IPK} -name "$name" || true`
if [ "$fullname" = "" ] ; then
--
1.7.8.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCHv2] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs
2012-03-30 10:55 ` [PATCHv2] " Martin Jansa
@ 2012-03-30 18:10 ` Denys Dmytriyenko
2012-03-30 18:21 ` Koen Kooi
2012-04-03 23:23 ` Saul Wold
1 sibling, 1 reply; 6+ messages in thread
From: Denys Dmytriyenko @ 2012-03-30 18:10 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, Mar 30, 2012 at 12:55:39PM +0200, Martin Jansa wrote:
> * log_check can find some files with ERR or Fail substring e.g. in "Source: " field
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This one looks better and it does not change the regex string, like the patch
sent to bitbake-devel...
Acked-by: Denys Dmytriyenko <denys@ti.com>
> ---
> meta/classes/rootfs_ipk.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
> index 13bd4bf..cbc63f0 100644
> --- a/meta/classes/rootfs_ipk.bbclass
> +++ b/meta/classes/rootfs_ipk.bbclass
> @@ -127,10 +127,12 @@ list_installed_packages() {
> }
>
> get_package_filename() {
> + set +x
> info=`opkg-cl ${IPKG_ARGS} info $1 | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" || true`
> name=`echo "${info}" | awk '/^Package/ {printf $2"_"}'`
> name=$name`echo "${info}" | awk -F: '/^Version/ {printf $NF"_"}' | sed 's/^\s*//g'`
> name=$name`echo "${info}" | awk '/^Archi/ {print $2".ipk"}'`
> + set -x
>
> fullname=`find ${DEPLOY_DIR_IPK} -name "$name" || true`
> if [ "$fullname" = "" ] ; then
> --
> 1.7.8.5
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHv2] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs
2012-03-30 18:10 ` Denys Dmytriyenko
@ 2012-03-30 18:21 ` Koen Kooi
0 siblings, 0 replies; 6+ messages in thread
From: Koen Kooi @ 2012-03-30 18:21 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Op 30 mrt. 2012, om 11:10 heeft Denys Dmytriyenko het volgende geschreven:
> On Fri, Mar 30, 2012 at 12:55:39PM +0200, Martin Jansa wrote:
>> * log_check can find some files with ERR or Fail substring e.g. in "Source: " field
>>
>> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>
> This one looks better and it does not change the regex string, like the patch
> sent to bitbake-devel...
>
> Acked-by: Denys Dmytriyenko <denys@ti.com>
Acked-by: Koen Kooi <koen@circuitco.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHv2] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs
2012-03-30 10:55 ` [PATCHv2] " Martin Jansa
2012-03-30 18:10 ` Denys Dmytriyenko
@ 2012-04-03 23:23 ` Saul Wold
1 sibling, 0 replies; 6+ messages in thread
From: Saul Wold @ 2012-04-03 23:23 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Martin Jansa
On 03/30/2012 03:55 AM, Martin Jansa wrote:
> * log_check can find some files with ERR or Fail substring e.g. in "Source: " field
>
> Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
> ---
> meta/classes/rootfs_ipk.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
> index 13bd4bf..cbc63f0 100644
> --- a/meta/classes/rootfs_ipk.bbclass
> +++ b/meta/classes/rootfs_ipk.bbclass
> @@ -127,10 +127,12 @@ list_installed_packages() {
> }
>
> get_package_filename() {
> + set +x
> info=`opkg-cl ${IPKG_ARGS} info $1 | grep -B 7 -A 7 "^Status.* \(\(installed\)\|\(unpacked\)\)" || true`
> name=`echo "${info}" | awk '/^Package/ {printf $2"_"}'`
> name=$name`echo "${info}" | awk -F: '/^Version/ {printf $NF"_"}' | sed 's/^\s*//g'`
> name=$name`echo "${info}" | awk '/^Archi/ {print $2".ipk"}'`
> + set -x
>
> fullname=`find ${DEPLOY_DIR_IPK} -name "$name" || true`
> if [ "$fullname" = "" ] ; then
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-04-03 23:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-30 9:50 [PATCH] rootfs_ipk: don't echo opkg-cl output to log.do_rootfs Martin Jansa
2012-03-30 10:42 ` Martin Jansa
2012-03-30 10:55 ` [PATCHv2] " Martin Jansa
2012-03-30 18:10 ` Denys Dmytriyenko
2012-03-30 18:21 ` Koen Kooi
2012-04-03 23:23 ` Saul Wold
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.