Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 394208 Details for
Bug 442874
net-proxy/http-replicator - local rsync server reports install flash player as wrong size
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 3.0: suggest repcacheman if cache doesn't exist
http-replicator-3-missing-directory.patch (text/plain), 1.73 KB, created by
Matthew Ogilvie
on 2015-01-17 19:57:19 UTC
(
hide
)
Description:
patch for 3.0: suggest repcacheman if cache doesn't exist
Filename:
MIME Type:
Creator:
Matthew Ogilvie
Created:
2015-01-17 19:57:19 UTC
Size:
1.73 KB
patch
obsolete
>Author: Matthew Ogilvie >Date: Sat Jan 17 09:24:34 2015 -0700 > > add some suggestions to the missing-directory error message > > Also wait until directory confirmed before forking. > > See gentoo bug 502574 and bug 442874 > >diff --git a/http-replicator b/http-replicator >index bbc163c..81e254d 100755 >--- a/http-replicator >+++ b/http-replicator >@@ -636,13 +636,6 @@ def main (): > parser.error('user %r does not exist' % options.user) > except OSError: > parser.error('no permission for changing to user %r' % options.user) >- pid = os.fork() # fork process >- if pid: # parent process >- pidfile.write(str(pid)) # store child's pid >- pidfile.close() >- return >- else: >- signal.signal(signal.SIGHUP, signal.SIG_IGN) > else: > handler = logging.StreamHandler(sys.stdout) # log to stdout > handler.setFormatter(logging.Formatter('%(levelname)s: %(name)s %(message)s')) >@@ -651,10 +644,22 @@ def main (): > try: > os.chdir(options.dir) # change to cache directory > except OSError: >- parser.error('invalid directory %r' % options.dir) >+ parser.error('invalid directory %r\n' \ >+ 'Try running repcacheman, and/or see\n' \ >+ 'http://forums.gentoo.org/viewtopic-t-173226.html' \ >+ % options.dir) > if not os.access(os.curdir, os.R_OK | os.W_OK): # check permissions for cache directory > parser.error('no read/write permission for directory %r' % options.dir) > >+ if options.daemon: >+ pid = os.fork() # fork process >+ if pid: # parent process >+ pidfile.write(str(pid)) # store child's pid >+ pidfile.close() >+ return >+ else: >+ signal.signal(signal.SIGHUP, signal.SIG_IGN) >+ > sys.stdout = sys.stderr = open('/dev/null', 'w') # redirect all output to bit bucket > logging.root.name = 'HttpReplicator' > try:
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 442874
:
329342
|
392616
|
392618
|
392620
|
393508
|
393512
|
393518
|
394206
| 394208 |
394210
|
428742
|
428792
|
429496
|
429522