Merge from jb-mr2

Change-Id: I259218338d642105d1914a1e3775bddb23493f1e
diff --git a/generate-blob-lists.sh b/generate-blob-lists.sh
index d80929c..1960745 100755
--- a/generate-blob-lists.sh
+++ b/generate-blob-lists.sh
@@ -42,14 +42,14 @@
 fi
 shift
 
-DEVICES=$(for i in device/*/*/proprietary-blobs.txt ; do basename $(dirname $i) ; done)
-
-export LC_ALL=C
-
 repo sync -j32 -n
 repo sync -j32 -n
 repo sync -j2 -l
 
+DEVICES=$(for i in device/*/*/proprietary-blobs.txt ; do basename $(dirname $i) ; done)
+
+export LC_ALL=C
+
 ARCHIVEDIR=archive-$(date +%s)
 if test -d archive-ref
 then