xbps-repo: really wait 30 secs max to acquire repo file lock.

This commit is contained in:
Juan RP 2012-08-14 09:36:44 +02:00
parent b422fa654e
commit a037b89042

View File

@ -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;
} }
} }