Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 13944 Details for
Bug 1661
Parallelising the download > compile > download > compile cycle (FEATURES=parallel-fetch)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for portage.py that uses environment variables for the lockdir
portage.py-2.0.48-r1-patch.diff (text/plain), 1.42 KB, created by
Chris Case
on 2003-06-27 16:11:08 UTC
(
hide
)
Description:
Patch for portage.py that uses environment variables for the lockdir
Filename:
MIME Type:
Creator:
Chris Case
Created:
2003-06-27 16:11:08 UTC
Size:
1.42 KB
patch
obsolete
>*** portage.py.bak Fri Jun 27 14:02:04 2003 >--- portage.py Fri Jun 27 15:45:19 2003 >*************** >*** 208,213 **** >--- 208,236 ---- > os.kill(0,signal.SIGKILL) > sys.exit(1) > >+ def lockfile(filename,verbose=1): >+ "Locks on /lockdir/filename, creates the lock file if necessary" >+ lockdir=settings["BUILD_PREFIX"]+"/" >+ #fd=open(root+lockdir+md5.new(filename).hexdigest(),'w') >+ fd=open(root+lockdir+filename,'w') >+ if verbose: >+ try: >+ fcntl.lockf(fd,fcntl.LOCK_EX|fcntl.LOCK_NB) >+ except IOError: >+ print green(" * ")+"Another process is holding a lock on '"+filename+"'" >+ print green(" * ")+"Waiting.. ", >+ sys.stdout.flush() >+ fcntl.lockf(fd,fcntl.LOCK_EX) >+ print "Resuming." >+ else: >+ fcntl.lockf(fd,fcntl.LOCK_EX) >+ return fd >+ >+ def unlockfile(fd): >+ "Releases a lock on fd" >+ fcntl.lockf(fd,fcntl.LOCK_UN) >+ fd.close() >+ > # dropping the signal handler to gives better tracebacks > # enable unless we're debugging > if not os.environ.has_key("DEBUG"): >*************** >*** 1108,1113 **** >--- 1131,1137 ---- > if listonly: > fetched=0 > print "" >+ myfilefd=lockfile(myfile) > for loc in filedict[myfile]: > if listonly: > print loc+" ", >*************** >*** 1195,1200 **** >--- 1219,1225 ---- > if not myret: > fetched=2 > break >+ unlockfile(myfilefd) > if (fetched!=2) and not listonly: > print '!!! Couldn\'t download',myfile+". Aborting." > return 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1661
:
11635
|
13367
| 13944 |
35074