All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Small fixes for fetch2
@ 2011-09-16  7:37 Martin Jansa
  2011-09-16  7:38 ` [PATCH 1/3] fetch2/git: fix typo logggin/logger Martin Jansa
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Martin Jansa @ 2011-09-16  7:37 UTC (permalink / raw)
  To: bitbake-devel

The following changes since commit 2d5c71ae78b13e935548fe6ff5174b1c09b3077d:

  fetch2: export LD_LIBRARY_PATH (2011-09-16 09:27:12 +0200)

are available in the git repository at:
  git://gitorious.org/shr/bitbake jansa/pull

Martin Jansa (3):
  fetch2/git: fix typo logggin/logger
  fetch2/git: be more carefull in _contains_ref when checking git log
    output
  fetch2: export LD_LIBRARY_PATH

 lib/bb/fetch2/__init__.py |    2 +-
 lib/bb/fetch2/git.py      |    7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

-- 
1.7.6.1




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/3] fetch2/git: fix typo logggin/logger
  2011-09-16  7:37 [PATCH 0/3] Small fixes for fetch2 Martin Jansa
@ 2011-09-16  7:38 ` Martin Jansa
  2011-09-16  7:38 ` [PATCH 2/3] fetch2/git: be more carefull in _contains_ref when checking git log output Martin Jansa
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Martin Jansa @ 2011-09-16  7:38 UTC (permalink / raw)
  To: bitbake-devel

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 lib/bb/fetch2/git.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 9a578ae..26236b8 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -280,7 +280,7 @@ class Git(FetchMethod):
         # Check if we have the rev already
 
         if not os.path.exists(ud.clonedir):
-            logging.debug("GIT repository for %s does not exist in %s.  \
+            logger.debug(1, "GIT repository for %s does not exist in %s.  \
                           Downloading.", url, ud.clonedir)
             self.download(None, ud, d)
             if not os.path.exists(ud.clonedir):
-- 
1.7.6.1




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/3] fetch2/git: be more carefull in _contains_ref when checking git log output
  2011-09-16  7:37 [PATCH 0/3] Small fixes for fetch2 Martin Jansa
  2011-09-16  7:38 ` [PATCH 1/3] fetch2/git: fix typo logggin/logger Martin Jansa
@ 2011-09-16  7:38 ` Martin Jansa
  2011-09-19 11:31   ` Richard Purdie
  2011-09-16  7:38 ` [PATCH 3/3] fetch2: export LD_LIBRARY_PATH Martin Jansa
  2011-09-19  7:38 ` [PATCH 0/3] Small fixes for fetch2 Martin Jansa
  3 siblings, 1 reply; 9+ messages in thread
From: Martin Jansa @ 2011-09-16  7:38 UTC (permalink / raw)
  To: bitbake-devel

* in some cases there could be output like this
  ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded: ignored.
  before wc -l output and returned 'output.split()[0] != 0' is always True

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 lib/bb/fetch2/git.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 26236b8..4a4c30d 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -239,7 +239,10 @@ class Git(FetchMethod):
 
     def _contains_ref(self, tag, d):
         basecmd = data.getVar("FETCHCMD_git", d, True) or "git"
-        output = runfetchcmd("%s log --pretty=oneline -n 1 %s -- 2> /dev/null | wc -l" % (basecmd, tag), d, quiet=True)
+        cmd = "%s log --pretty=oneline -n 1 %s -- 2> /dev/null | wc -l" % (basecmd, tag)
+        output = runfetchcmd(cmd, d, quiet=True)
+        if len(output.split()) > 1:
+            raise bb.fetch2.FetchError("The command '%s' gave output with more then 1 line unexpectedly, output: '%s'" % (cmd, output))
         return output.split()[0] != "0"
 
     def _revision_key(self, url, ud, d, name):
-- 
1.7.6.1




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/3] fetch2: export LD_LIBRARY_PATH
  2011-09-16  7:37 [PATCH 0/3] Small fixes for fetch2 Martin Jansa
  2011-09-16  7:38 ` [PATCH 1/3] fetch2/git: fix typo logggin/logger Martin Jansa
  2011-09-16  7:38 ` [PATCH 2/3] fetch2/git: be more carefull in _contains_ref when checking git log output Martin Jansa
@ 2011-09-16  7:38 ` Martin Jansa
  2011-09-19  7:38 ` [PATCH 0/3] Small fixes for fetch2 Martin Jansa
  3 siblings, 0 replies; 9+ messages in thread
From: Martin Jansa @ 2011-09-16  7:38 UTC (permalink / raw)
  To: bitbake-devel

* in some cases git calls omits extra output like this
  ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded: ignored.
  and because runfetchcmd redirects stderr to stdout it ends in output
  which we're parsing ie in _contains_ref

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 lib/bb/fetch2/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index f6fa46c..8a8a636 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -385,7 +385,7 @@ def runfetchcmd(cmd, d, quiet = False, cleanup = []):
     exportvars = ['PATH', 'GIT_PROXY_COMMAND', 'GIT_PROXY_HOST',
                   'GIT_PROXY_PORT', 'GIT_CONFIG', 'http_proxy', 'ftp_proxy',
                   'https_proxy', 'no_proxy', 'ALL_PROXY', 'all_proxy',
-                  'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 'HOME']
+                  'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 'HOME', 'LD_LIBRARY_PATH']
 
     for var in exportvars:
         val = bb.data.getVar(var, d, True)
-- 
1.7.6.1




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/3] Small fixes for fetch2
  2011-09-16  7:37 [PATCH 0/3] Small fixes for fetch2 Martin Jansa
                   ` (2 preceding siblings ...)
  2011-09-16  7:38 ` [PATCH 3/3] fetch2: export LD_LIBRARY_PATH Martin Jansa
@ 2011-09-19  7:38 ` Martin Jansa
  2011-09-19  7:58   ` [PATCH] fetch2/git: fix logger.debug Martin Jansa
  2011-09-19 11:26   ` [PATCH 0/3] Small fixes for fetch2 Richard Purdie
  3 siblings, 2 replies; 9+ messages in thread
From: Martin Jansa @ 2011-09-19  7:38 UTC (permalink / raw)
  To: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

On Fri, Sep 16, 2011 at 09:37:24AM +0200, Martin Jansa wrote:
> The following changes since commit 2d5c71ae78b13e935548fe6ff5174b1c09b3077d:
> 
>   fetch2: export LD_LIBRARY_PATH (2011-09-16 09:27:12 +0200)
> 
> are available in the git repository at:
>   git://gitorious.org/shr/bitbake jansa/pull
> 
> Martin Jansa (3):
>   fetch2/git: fix typo logggin/logger
>   fetch2/git: be more carefull in _contains_ref when checking git log
>     output
>   fetch2: export LD_LIBRARY_PATH
> 
>  lib/bb/fetch2/__init__.py |    2 +-
>  lib/bb/fetch2/git.py      |    7 +++++--
>  2 files changed, 6 insertions(+), 3 deletions(-)

Hi,

Is there any reason why this wasn't merged and this 
http://git.openembedded.org/cgit.cgi/bitbake/commit/?id=38a598731b49c8a0ba0ede570adc33eb1e848235
was merged instead?

Notice missing debug level as first param..

Regards,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] fetch2/git: fix logger.debug
  2011-09-19  7:38 ` [PATCH 0/3] Small fixes for fetch2 Martin Jansa
@ 2011-09-19  7:58   ` Martin Jansa
  2011-09-19 11:25     ` Richard Purdie
  2011-09-19 11:26   ` [PATCH 0/3] Small fixes for fetch2 Richard Purdie
  1 sibling, 1 reply; 9+ messages in thread
From: Martin Jansa @ 2011-09-19  7:58 UTC (permalink / raw)
  To: bitbake-devel

* logging/logger typo was fixed in 38a598731b49c8a0ba0ede570adc33eb1e848235
  but debug level is still missing

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 lib/bb/fetch2/git.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 275536f..26236b8 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -280,7 +280,7 @@ class Git(FetchMethod):
         # Check if we have the rev already
 
         if not os.path.exists(ud.clonedir):
-            logger.debug("GIT repository for %s does not exist in %s.  \
+            logger.debug(1, "GIT repository for %s does not exist in %s.  \
                           Downloading.", url, ud.clonedir)
             self.download(None, ud, d)
             if not os.path.exists(ud.clonedir):
-- 
1.7.6.1




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] fetch2/git: fix logger.debug
  2011-09-19  7:58   ` [PATCH] fetch2/git: fix logger.debug Martin Jansa
@ 2011-09-19 11:25     ` Richard Purdie
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2011-09-19 11:25 UTC (permalink / raw)
  To: Martin Jansa; +Cc: bitbake-devel

On Mon, 2011-09-19 at 09:58 +0200, Martin Jansa wrote:
> * logging/logger typo was fixed in 38a598731b49c8a0ba0ede570adc33eb1e848235
>   but debug level is still missing
> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  lib/bb/fetch2/git.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/3] Small fixes for fetch2
  2011-09-19  7:38 ` [PATCH 0/3] Small fixes for fetch2 Martin Jansa
  2011-09-19  7:58   ` [PATCH] fetch2/git: fix logger.debug Martin Jansa
@ 2011-09-19 11:26   ` Richard Purdie
  1 sibling, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2011-09-19 11:26 UTC (permalink / raw)
  To: Martin Jansa; +Cc: bitbake-devel

On Mon, 2011-09-19 at 09:38 +0200, Martin Jansa wrote:
> On Fri, Sep 16, 2011 at 09:37:24AM +0200, Martin Jansa wrote:
> > The following changes since commit 2d5c71ae78b13e935548fe6ff5174b1c09b3077d:
> > 
> >   fetch2: export LD_LIBRARY_PATH (2011-09-16 09:27:12 +0200)
> > 
> > are available in the git repository at:
> >   git://gitorious.org/shr/bitbake jansa/pull
> > 
> > Martin Jansa (3):
> >   fetch2/git: fix typo logggin/logger
> >   fetch2/git: be more carefull in _contains_ref when checking git log
> >     output
> >   fetch2: export LD_LIBRARY_PATH
> > 
> >  lib/bb/fetch2/__init__.py |    2 +-
> >  lib/bb/fetch2/git.py      |    7 +++++--
> >  2 files changed, 6 insertions(+), 3 deletions(-)
> 
> Hi,
> 
> Is there any reason why this wasn't merged and this 
> http://git.openembedded.org/cgit.cgi/bitbake/commit/?id=38a598731b49c8a0ba0ede570adc33eb1e848235
> was merged instead?

I wasn't seeing emails to bitbake-devel due to some mail filtering
issues after the LinuxFoundation email redirection changes. Those are
fixed now and I've fixed my broken commit.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/3] fetch2/git: be more carefull in _contains_ref when checking git log output
  2011-09-16  7:38 ` [PATCH 2/3] fetch2/git: be more carefull in _contains_ref when checking git log output Martin Jansa
@ 2011-09-19 11:31   ` Richard Purdie
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2011-09-19 11:31 UTC (permalink / raw)
  To: Martin Jansa; +Cc: bitbake-devel

On Fri, 2011-09-16 at 09:38 +0200, Martin Jansa wrote:
> * in some cases there could be output like this
>   ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded: ignored.
>   before wc -l output and returned 'output.split()[0] != 0' is always True
> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  lib/bb/fetch2/git.py |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-09-19 11:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-16  7:37 [PATCH 0/3] Small fixes for fetch2 Martin Jansa
2011-09-16  7:38 ` [PATCH 1/3] fetch2/git: fix typo logggin/logger Martin Jansa
2011-09-16  7:38 ` [PATCH 2/3] fetch2/git: be more carefull in _contains_ref when checking git log output Martin Jansa
2011-09-19 11:31   ` Richard Purdie
2011-09-16  7:38 ` [PATCH 3/3] fetch2: export LD_LIBRARY_PATH Martin Jansa
2011-09-19  7:38 ` [PATCH 0/3] Small fixes for fetch2 Martin Jansa
2011-09-19  7:58   ` [PATCH] fetch2/git: fix logger.debug Martin Jansa
2011-09-19 11:25     ` Richard Purdie
2011-09-19 11:26   ` [PATCH 0/3] Small fixes for fetch2 Richard Purdie

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.