Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 38694 Details for
Bug 62534
dispatch-conf crashs when merging files and /tmp and /etc are on different filesystems!
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch (diff -cbr OLD NEW) of /usr/sbin/dispatch-conf
patch (text/plain), 2.59 KB, created by
K. Posern
on 2004-09-01 11:05:08 UTC
(
hide
)
Description:
patch (diff -cbr OLD NEW) of /usr/sbin/dispatch-conf
Filename:
MIME Type:
Creator:
K. Posern
Created:
2004-09-01 11:05:08 UTC
Size:
2.59 KB
patch
obsolete
>*** /usr/sbin/dispatch-conf.ORIGINAL Wed Sep 1 19:54:18 2004 >--- /usr/sbin/dispatch-conf.NEW Wed Sep 1 19:57:04 2004 >*************** >*** 14,20 **** > # > > from stat import * >! import os, sys, string, re, commands > sys.path = ["/usr/lib/portage/pym"]+sys.path > > import portage, dispatch_conf >--- 14,20 ---- > # > > from stat import * >! import os, sys, string, re, commands, shutil > sys.path = ["/usr/lib/portage/pym"]+sys.path > > import portage, dispatch_conf >*************** >*** 37,43 **** > count = 0 > > if os.path.exists(LOG_CHANGES_TO): >! os.rename(LOG_CHANGES_TO, LOG_CHANGES_TO + '.old') > > self.options = dispatch_conf.read_config(MANDATORY_OPTS) > >--- 37,43 ---- > count = 0 > > if os.path.exists(LOG_CHANGES_TO): >! shutil.move(LOG_CHANGES_TO, LOG_CHANGES_TO + '.old') > > self.options = dispatch_conf.read_config(MANDATORY_OPTS) > >*************** >*** 150,156 **** > merged = '/tmp/dispatch-conf.merged.%i' % (os.getpid (),) > print > os.system (MERGE % (merged, conf ['current'], newconf)) >! os.rename (merged, mrgconf) > mystat = os.lstat(conf['new']) > os.chmod(mrgconf, mystat[ST_MODE]) > os.chown(mrgconf, mystat[ST_UID], mystat[ST_GID]) >--- 150,156 ---- > merged = '/tmp/dispatch-conf.merged.%i' % (os.getpid (),) > print > os.system (MERGE % (merged, conf ['current'], newconf)) >! shutil.move (merged, mrgconf) > mystat = os.lstat(conf['new']) > os.chmod(mrgconf, mystat[ST_MODE]) > os.chown(mrgconf, mystat[ST_UID], mystat[ST_GID]) >*************** >*** 184,190 **** > the diff of what changed into the LOG_CHANGES_TO file.""" > os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + LOG_CHANGES_TO) > try: >! os.rename (newconf, curconf) > except (IOError, os.error), why: > print >> sys.stderr, 'dispatch-conf: Error renaming %s to %s: %s; fatal' % \ > (newconf, curconf, str(why)) >--- 184,190 ---- > the diff of what changed into the LOG_CHANGES_TO file.""" > os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + LOG_CHANGES_TO) > try: >! shutil.move (newconf, curconf) > except (IOError, os.error), why: > print >> sys.stderr, 'dispatch-conf: Error renaming %s to %s: %s; fatal' % \ > (newconf, curconf, str(why))
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 62534
: 38694 |
38916