FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Desktop

 
 
LinkBack Thread Tools
 
Old 08-12-2010, 01:59 PM
David Cantrell
 
Default We checked for updated driver with wrong path prefix (#619745)

Ack. Make sure this ends up on master and rhel6-branch.

On Thu, 12 Aug 2010, Martin Sivak wrote:


---
constants.py | 3 ++-
yuminstall.py | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/constants.py b/constants.py
index e6fbd3b..b1baa4e 100644
--- a/constants.py
+++ b/constants.py
@@ -19,6 +19,7 @@
# Author(s): Erik Troan <ewt@redhat.com>
#

+import re
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
N_ = lambda x: x
@@ -84,7 +85,7 @@ else:
exceptionText += _(" against anaconda at %s") %(bugzillaUrl,)

# DriverDisc Paths
-DD_EXTRACTED = "/tmp/DD"
+DD_EXTRACTED = re.compile("/lib/modules/[^/]+/updates/DD/(?P<modulename>.+)")
DD_RPMS = "/tmp/DD-*"

TRANSLATIONS_UPDATE_DIR="/tmp/updates/po"
diff --git a/yuminstall.py b/yuminstall.py
index ce1f898..938cbd9 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1398,8 +1398,9 @@ debuglevel=10

#We need to install the packages which contain modules from DriverDiscs
for modPath in isys.modulesWithPaths():
- if modPath.startswith(DD_EXTRACTED):
- moduleProvides.append(modPath[len(DD_EXTRACTED):])
+ match = DD_EXTRACTED.match(modPath):
+ if match:
+ moduleProvides.append(match.group("modulename"))
else:
continue




--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 08-12-2010, 02:05 PM
Ales Kozumplik
 
Default We checked for updated driver with wrong path prefix (#619745)

On 08/12/2010 10:23 AM, Martin Sivak wrote:

---
constants.py | 3 ++-
yuminstall.py | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)



In any language, Ack.

Al_

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org