From abf6e6769e3c5caa8dfa5b247042c79d0b7d21d6 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: May 20 2009 22:23:38 +0000 Subject: and add the shutdown patch --- diff --git a/yum-close-rpmdb-really.patch b/yum-close-rpmdb-really.patch index e25435b..54b3f6e 100644 --- a/yum-close-rpmdb-really.patch +++ b/yum-close-rpmdb-really.patch @@ -29,3 +29,20 @@ index 6378cdc..cc57e98 100644 def costExcludePackages(self): """exclude packages if they have an identical package in another repo + +diff --git a/yum/rpmsack.py b/yum/rpmsack.py +index 5189b18..8556e9a 100644 +--- a/yum/rpmsack.py ++++ b/yum/rpmsack.py +@@ -140,7 +140,10 @@ class RPMDBPackageSack(PackageSackBase): + self._simple_pkgtup_list = [] + self._get_pro_cache = {} + self._get_req_cache = {} +- misc.unshare_data() ++ # We can be called on python shutdown (due to yb.__del__), at which ++ # point other modules might not be available. ++ if misc is not None: ++ misc.unshare_data() + self._cache = { + 'provides' : { }, + 'requires' : { }, diff --git a/yum.spec b/yum.spec index 1e9ece2..8d248db 100644 --- a/yum.spec +++ b/yum.spec @@ -3,7 +3,7 @@ Summary: RPM installer/updater Name: yum Version: 3.2.23 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Group: System Environment/Base Source0: http://yum.baseurl.org/download/3.2/%{name}-%{version}.tar.gz