From d8afb23ab843ff60c895fc054db06d80eaeecf4e Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Thu, 13 Mar 2008 23:24:21 +0000 Subject: [PATCH] fix a regression in trigger_get_grub_boot_dev() git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1469 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index f811ae9e1..dd630a9fd 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -6620,7 +6620,7 @@ timeout=10 ) return "(hd0,0)" match = re.subn("[a-z/]","",gboot) - gpartnum = str(int(gdisk)-1) + gpartnum = str(int(match[0])-1) # now match with grub device_map = etpConst['packagestmpdir']+"/grub.map" if os.path.isfile(device_map):