]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: Sync with upstream 1.8 branch for git fetcher and --continue mode fix
authorRichard Purdie <richard@openedhand.com>
Mon, 11 Feb 2008 20:33:43 +0000 (20:33 +0000)
committerRichard Purdie <richard@openedhand.com>
Mon, 11 Feb 2008 20:33:43 +0000 (20:33 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3761 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/ChangeLog
bitbake/MANIFEST
bitbake/lib/bb/fetch/git.py
bitbake/lib/bb/runqueue.py

index 72ef22d610fcb7a7ee04dcfe81cfda7850a52520..7e6b7b26a45e584883c0ca8268120c642be78356 100644 (file)
@@ -1,3 +1,7 @@
+Changes in BitBake 1.8.x:
+       - Fix exit code for build failures in --continue mode
+       - Fix git branch tags fetching
+
 Changes in BitBake 1.8.10:
        - Psyco is available only for x86 - do not use it on other architectures.
        - Fix a bug in bb.decodeurl where http://some.where.com/somefile.tgz decoded to host="" (#1530)
index ae01faf8c37f7ffac06b676afa9c0011ee21cb4a..0671f440bcae74a5a0c6ed84881d5e58684a3386 100644 (file)
@@ -15,8 +15,10 @@ lib/bb/data.py
 lib/bb/data_smart.py
 lib/bb/event.py
 lib/bb/fetch/__init__.py
+lib/bb/fetch/bzr.py
 lib/bb/fetch/cvs.py
 lib/bb/fetch/git.py
+lib/bb/fetch/hg.py
 lib/bb/fetch/local.py
 lib/bb/fetch/perforce.py
 lib/bb/fetch/ssh.py
index 65ea5e5cadb5478a4c88fa73fc983505c7b3c53c..0c708e3516d60ba16818749b01a056a5226eec81 100644 (file)
@@ -96,7 +96,7 @@ class Git(Fetch):
         # Remove all but the .git directory
         runfetchcmd("rm * -Rf", d)
         runfetchcmd("git fetch %s://%s%s" % (ud.proto, ud.host, ud.path), d)
-        runfetchcmd("git pull --tags %s://%s%s" % (ud.proto, ud.host, ud.path), d)
+        runfetchcmd("git fetch --tags %s://%s%s" % (ud.proto, ud.host, ud.path), d)
         runfetchcmd("git prune-packed", d)
         runfetchcmd("git pack-redundant --all | xargs -r rm", d)
 
index 9d27d539c12ec41dc576da7a3442d6b4429e5447..9d72d92fac2f58695fd34abfcd47abfd00256f19 100644 (file)
@@ -564,9 +564,9 @@ class RunQueue:
         # Check to make sure we still have tasks to run
         if len(self.runq_fnid) == 0:
             if not taskData.abort:
-                bb.msg.note(1, bb.msg.domain.RunQueue, "All buildable tasks have been run but the build is incomplete (--continue mode). Errors for the tasks that failed will have been printed above.")
-                return
-            bb.msg.fatal(bb.msg.domain.RunQueue, "No active tasks and not in --continue mode?! Please report this bug.")
+                bb.msg.fatal(bb.msg.domain.RunQueue, "All buildable tasks have been run but the build is incomplete (--continue mode). Errors for the tasks that failed will have been printed above.")
+            else:              
+                bb.msg.fatal(bb.msg.domain.RunQueue, "No active tasks and not in --continue mode?! Please report this bug.")
 
         bb.msg.note(2, bb.msg.domain.RunQueue, "Pruned %s inactive tasks, %s left" % (delcount, len(self.runq_fnid)))