1 |
Dnia 2014-09-03, o godz. 18:22:15 |
2 |
Brian Dolbec <dolsen@g.o> napisał(a): |
3 |
|
4 |
> On Wed, 3 Sep 2014 17:35:40 -0700 |
5 |
> Brian Dolbec <dolsen@g.o> wrote: |
6 |
> |
7 |
> > |
8 |
> > Most of you know about the plugin-sync branch of our portage.git repo. |
9 |
> > I believe it is ready for review and merge into master to become the |
10 |
> > new sync code for the future. |
11 |
> > |
12 |
> > Rather than follow this with 49 patch mails ... I produced a final git |
13 |
> > diff of all the changes. I have cleaned up and squashed the original |
14 |
> > commits to a point I do not want to squash further. This will keep |
15 |
> > enough development history for important changes for future |
16 |
> > troubleshooting if it is needed. Instead of inlining this diff like |
17 |
> > most people prefer, I have attached it. It is 4.4K+ lines long. |
18 |
> > Probably too long for many email clients. Plus opeing it in an editor |
19 |
> > will allow the editors syntax highlighting to make code review easier. |
20 |
> > |
21 |
> > I have fully rebased the code on the current master (commit |
22 |
> > 582cb806f88 QA patch) and pushed it to both our gentoo repo and our |
23 |
> > github gentoo/portage repo. For those that wish to review it using |
24 |
> > githubs interface. You have that option too. |
25 |
> > |
26 |
> > Thank you to all those that contributed to the code and testing. |
27 |
> |
28 |
> fixed: bracket spacing (spotted by mrueg) |
29 |
> |
30 |
> diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync |
31 |
> index 2f0689c..43f92b6 100755 |
32 |
> --- a/bin/emerge-webrsync |
33 |
> +++ b/bin/emerge-webrsync |
34 |
> @@ -501,8 +501,8 @@ main() { |
35 |
> |
36 |
> # This is a sanity check to help prevent people like funtoo |
37 |
> users # from accidentally wiping out their git tree. |
38 |
> - if [[ -n ${repo_sync_type} && ${repo_sync_type} != rsync ]] ;then |
39 |
> - echo "The current sync-type attribute of repository 'gentoo' is not set to 'rsync':" >&2 |
40 |
> + if [ [ -n ${repo_sync_type} ] && [ ${repo_sync_type} != rsync |
41 |
> -o ${repo_sync_type} != websync ] ] ; then |
42 |
> + echo "The current sync-type attribute of repository 'gentoo' is not set to 'rsync' or 'websync':" >&2 echo >&2 |
43 |
|
44 |
I don't know what magic this is but you definitely want the old |
45 |
|
46 |
[[ -n ${repo_sync_type} && ${repo_sync_type} != rsync ]] |
47 |
|
48 |
with no extra brackets. |
49 |
|
50 |
-- |
51 |
Best regards, |
52 |
Michał Górny |