Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 126976 Details for
Bug 187806
emerge should create its temp-dir also for --sync
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use mkstemp instead of using PORTAGE_TMPDIR
mkstemp.patch (text/plain), 1.19 KB, created by
Zac Medico
on 2007-08-05 18:10:01 UTC
(
hide
)
Description:
use mkstemp instead of using PORTAGE_TMPDIR
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-08-05 18:10:01 UTC
Size:
1.19 KB
patch
obsolete
>Index: bin/emerge >=================================================================== >--- bin/emerge (revision 7576) >+++ bin/emerge (revision 7577) >@@ -4443,7 +4443,6 @@ > if myaction == "metadata": > print "skipping sync" > updatecache_flg = True >- tmpservertimestampfile = None > elif syncuri[:8]=="rsync://": > if not os.path.exists("/usr/bin/rsync"): > print "!!! /usr/bin/rsync does not exist, so rsync support is disabled." >@@ -4558,9 +4557,6 @@ > # Real local timestamp file. > servertimestampfile = os.path.join( > myportdir, "metadata", "timestamp.chk") >- # Temporary file for remote server timestamp comparison. >- tmpservertimestampfile = os.path.join( >- settings["PORTAGE_TMPDIR"], "timestamp.chk") > > content = portage_util.grabfile(servertimestampfile) > mytimestamp = 0 >@@ -4674,6 +4670,10 @@ > # connection attempt to an unresponsive server which rsync's > # --timeout option does not prevent. > if True: >+ # Temporary file for remote server timestamp comparison. >+ from tempfile import mkstemp >+ fd, tmpservertimestampfile = mkstemp() >+ os.close(fd) > mycommand = rsynccommand[:] > mycommand.append(dosyncuri.rstrip("/") + \ > "/metadata/timestamp.chk")
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 187806
: 126976