xbps-repo: really wait 30 secs max to acquire repo file lock.
This commit is contained in:
parent
b422fa654e
commit
a037b89042
@ -71,8 +71,8 @@ acquire_repo_lock(const char *plist, char **plist_lock)
|
|||||||
if (errno == EAGAIN || errno == EACCES) {
|
if (errno == EAGAIN || errno == EACCES) {
|
||||||
if (++try < WAIT_SECONDS) {
|
if (++try < WAIT_SECONDS) {
|
||||||
fprintf(stderr,"Repository index file "
|
fprintf(stderr,"Repository index file "
|
||||||
"is busy! retrying in 5 sec...\n");
|
"is busy! retrying in 1 sec...\n");
|
||||||
sleep(5);
|
sleep(1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user