# PORTAGE_RSYNC_RETRIES sets the number of times portage will attempt to retrieve
# a current portage tree before it exits with an error. This allows
# for a more successful retrieval without user intervention most times.
-#PORTAGE_RSYNC_RETRIES="3"
+# If set to a negative number, then retry until all possible addresses are
+# exhausted.
+#PORTAGE_RSYNC_RETRIES="-1"
#
# PORTAGE_RSYNC_EXTRA_OPTS can be used to feed additional options to the rsync
# command used by `emerge --sync`. This will not change the default options
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
# Number of times 'emerge --sync' will run before giving up.
-PORTAGE_RSYNC_RETRIES="3"
+PORTAGE_RSYNC_RETRIES="-1"
# Number of seconds rsync will wait before timing out.
#RSYNC_TIMEOUT="180"
PORTAGE_RSYNC_RETRIES
---------------------
-:default: 3
+:default: -1
:valdesc: integer
The number of times rsync should retry on failed connections before giving up.
-.TH "MAKE.CONF" "5" "Aug 2010" "Portage VERSION" "Portage"
+.TH "MAKE.CONF" "5" "Oct 2010" "Portage VERSION" "Portage"
.SH "NAME"
make.conf \- custom settings for Portage
.SH "SYNOPSIS"
.TP
\fBPORTAGE_RSYNC_RETRIES\fR = \fI[NUMBER]\fR
The number of times rsync should retry on failed connections before
-giving up.
+giving up. If set to a negative number, then retry until all possible
+addresses are exhausted.
.br
-Defaults to 3.
+Defaults to -1.
.TP
\fBPORTAGE_SYNC_STALE\fR = \fI[NUMBER]\fR
Defines the number of days after the last `emerge \-\-sync` that a warning
except SystemExit as e:
raise # Needed else can't exit
except:
- maxretries=3 #default number of retries
+ maxretries = -1 #default number of retries
retries=0
user_name, hostname, port = re.split(
retries=retries+1
- if retries<=maxretries:
+ if maxretries < 0 or retries <= maxretries:
print(">>> Retrying...")
- time.sleep(11)
else:
# over retries
# exit loop