1 |
commit: 69b94063ec91bddce79573c5b776c05efece51fd |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 27 20:55:55 2016 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 27 20:55:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=69b94063 |
7 |
|
8 |
emerge must use repos.conf now, instead of PORTDIR. |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
scripts/update_auto_tree | 14 +++++++++++++- |
13 |
scripts/update_official_tree | 14 +++++++++++++- |
14 |
scripts/update_snapshot_tree | 14 +++++++++++++- |
15 |
3 files changed, 39 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/scripts/update_auto_tree b/scripts/update_auto_tree |
18 |
index 08909e7..a68d561 100755 |
19 |
--- a/scripts/update_auto_tree |
20 |
+++ b/scripts/update_auto_tree |
21 |
@@ -1,2 +1,14 @@ |
22 |
#!/bin/bash |
23 |
-PORTDIR="/release/trees/portage-auto/" FEATURES="$FEATURES -news" emerge --sync -q |
24 |
+PORTDIR="/release/trees/portage-auto/" |
25 |
+TMPREPO=$(mktemp) |
26 |
+trap "rm -f $TMPREPO" EXIT |
27 |
+cat >$f <<EOF |
28 |
+[DEFAULT] |
29 |
+main-repo = gentoo |
30 |
+ |
31 |
+[gentoo] |
32 |
+location = $PORTDIR |
33 |
+sync-type = rsync |
34 |
+sync-uri = rsync://rsync.gentoo.org/gentoo-portage |
35 |
+EOF |
36 |
+PORTAGE_REPOSITORIES="$(cat $TMPREPO)" FEATURES="$FEATURES -news" emerge --sync -q |
37 |
|
38 |
diff --git a/scripts/update_official_tree b/scripts/update_official_tree |
39 |
index 250e905..3424cb6 100755 |
40 |
--- a/scripts/update_official_tree |
41 |
+++ b/scripts/update_official_tree |
42 |
@@ -1,2 +1,14 @@ |
43 |
#!/bin/bash |
44 |
-PORTDIR="/release/trees/portage-official/" emerge --sync |
45 |
+PORTDIR="/release/trees/portage-official/" |
46 |
+TMPREPO=$(mktemp) |
47 |
+trap "rm -f $TMPREPO" EXIT |
48 |
+cat >$f <<EOF |
49 |
+[DEFAULT] |
50 |
+main-repo = gentoo |
51 |
+ |
52 |
+[gentoo] |
53 |
+location = $PORTDIR |
54 |
+sync-type = rsync |
55 |
+sync-uri = rsync://rsync.gentoo.org/gentoo-portage |
56 |
+EOF |
57 |
+PORTAGE_REPOSITORIES="$(cat $TMPREPO)" FEATURES="$FEATURES -news" emerge --sync -q |
58 |
|
59 |
diff --git a/scripts/update_snapshot_tree b/scripts/update_snapshot_tree |
60 |
index f64742d..3a5284a 100755 |
61 |
--- a/scripts/update_snapshot_tree |
62 |
+++ b/scripts/update_snapshot_tree |
63 |
@@ -1,2 +1,14 @@ |
64 |
#!/bin/bash |
65 |
-PORTDIR="/release/trees/portage-snapshot/" emerge --sync |
66 |
+PORTDIR="/release/trees/portage-snapshot/" |
67 |
+TMPREPO=$(mktemp) |
68 |
+trap "rm -f $TMPREPO" EXIT |
69 |
+cat >$f <<EOF |
70 |
+[DEFAULT] |
71 |
+main-repo = gentoo |
72 |
+ |
73 |
+[gentoo] |
74 |
+location = $PORTDIR |
75 |
+sync-type = rsync |
76 |
+sync-uri = rsync://rsync.gentoo.org/gentoo-portage |
77 |
+EOF |
78 |
+PORTAGE_REPOSITORIES="$(cat $TMPREPO)" FEATURES="$FEATURES -news" emerge --sync -q |