Skip to contentSkip to conversation

br-reproduce-build: support repository with non standard name

PATCH New Fabio Porcedda 2 participants 3 messages Feb 18, 2015 – Feb 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 br-reproduce-build: support repository with non standard name

Use "buildroot" as the name of the cloned repositoy so even if the existing repository name isn't "buildroot" the script will works fine.

---
 utils/br-reproduce-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/br-reproduce-build +1 -1
index c0dc530..10a2d13 100755
@@ -36,7 +36,7 @@ fi
 wget -O ${BUILD_DIR}/gitid http://autobuild.buildroot.org/results/${BUILD_ID}/gitid
 
 cd ${BUILD_DIR}
-git clone ${BASE_GIT}
+git clone ${BASE_GIT} buildroot
 if [ $? -ne 0 ] ; then
     echo "Cannot clone Buildroot Git repository"
     rm -rf ${BUILD_DIR}
Signature · 1 line
2.3.0
#1 lore raw

PATCH 2/2 br-reproduce-build: do a fetch instead of a pull

The pull is not needed so use a cheaper fetch, also it will work even if the existing repository doesn't point to branches of the official repository.

---
 utils/br-reproduce-build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
utils/br-reproduce-build +2 -2
index 10a2d13..01d1b7a 100755
@@ -47,9 +47,9 @@ cd buildroot
 
 git remote set-url origin git://git.busybox.net/buildroot
 
-git pull
+git fetch
 if [ $? -ne 0 ] ; then
-    echo "Cannot pull Buildroot Git repository"
+    echo "Cannot fetch Buildroot official Git repository"
     rm -rf ${BUILD_DIR}
     exit 1
 fi
Signature · 1 line
2.3.0
#2 lore raw

PATCH 1/2 br-reproduce-build: support repository with non standard name

In reply to Fabio Porcedda

Dear Fabio Porcedda,

Quoted 7 lines · Fabio Porcedda

Use "buildroot" as the name of the cloned repositoy so even if the existing repository name isn't "buildroot" the script will works fine.

---
 utils/br-reproduce-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Both patches applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com