Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 421836 Details for
Bug 570798
emirrordist fails on dev-lang/python[-berkdb], needs to try bsddb3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
support bsddb3 (untested)
0001-emirrordist-support-bsddb3-module-bug-570798.patch (text/plain), 1.10 KB, created by
Zac Medico
on 2016-01-04 03:10:16 UTC
(
hide
)
Description:
support bsddb3 (untested)
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2016-01-04 03:10:16 UTC
Size:
1.10 KB
patch
obsolete
>From 32d0c62718235d4e2c5f77dcb13c2e0e7db21dd6 Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Sun, 3 Jan 2016 19:05:24 -0800 >Subject: [PATCH] emirrordist: support bsddb3 module (bug 570798) > >If shelve.open raises ImportError for bsddb, then use bsddb3 instead. > >X-Gentoo-Bug: 570798 >X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=570798 >--- > pym/portage/_emirrordist/Config.py | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/pym/portage/_emirrordist/Config.py b/pym/portage/_emirrordist/Config.py >index f884a49..600d1d6 100644 >--- a/pym/portage/_emirrordist/Config.py >+++ b/pym/portage/_emirrordist/Config.py >@@ -109,7 +109,13 @@ class Config(object): > if self.options.dry_run and not os.path.exists(db_file): > db = {} > else: >- db = shelve.open(db_file, flag=open_flag) >+ try: >+ db = shelve.open(db_file, flag=open_flag) >+ except ImportError as e: >+ if e.name == 'bsddb': >+ from bsddb3 import dbshelve as shelve >+ db = shelve.open(db_file, flag=open_flag) >+ > if sys.hexversion < 0x3000000: > db = ShelveUnicodeWrapper(db) > >-- >2.4.10 >
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 570798
:
421836
|
421924