br-reproduce-build: support repository with non standard name
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.
Signed-off-by Fabio Porcedda <[email protected]>
--- utils/br-reproduce-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/br-reproduce-build +1 -1
@@ -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
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.
Signed-off-by Fabio Porcedda <[email protected]>
--- utils/br-reproduce-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
utils/br-reproduce-build +2 -2
@@ -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
PATCH 1/2 br-reproduce-build: support repository with non standard name
In reply to Fabio PorceddaDear 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.
Signed-off-by Fabio Porcedda <[email protected]>--- 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