From efde4e19f3729813d177d554a34f54fd11c5ae80 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Wed, 27 Feb 2008 12:00:14 +0000 Subject: [PATCH] - updated TODO - make a backup of grub.conf when dealing with it git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1318 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- TODO | 1 + libraries/entropy.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/TODO b/TODO index 11ca8eaa5..dd74a571d 100644 --- a/TODO +++ b/TODO @@ -18,6 +18,7 @@ TODO list: Spritz: - interface bug reporting interface (ahah) + - handle entropy exceptions - add masking menu - use availability bool to show masked packages and connect the masking menu - Popularity feature / Your Ego service diff --git a/libraries/entropy.py b/libraries/entropy.py index 22d937cd5..c2aa20bdb 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -6202,6 +6202,7 @@ class TriggerInterface: if os.path.isfile(etpConst['systemroot']+"/boot/grub/grub.conf"): # open in append grub = open(etpConst['systemroot']+"/boot/grub/grub.conf","aw") + shutil.copy2(etpConst['systemroot']+"/boot/grub/grub.conf",etpConst['systemroot']+"/boot/grub/grub.conf.old.add") # get boot dev boot_dev = self.trigger_get_grub_boot_dev() # test if entry has been already added @@ -6248,6 +6249,7 @@ timeout=10 def trigger_remove_boot_grub(self, kernel,initramfs): if os.path.isdir(etpConst['systemroot']+"/boot/grub") and os.path.isfile(etpConst['systemroot']+"/boot/grub/grub.conf"): + shutil.copy2(etpConst['systemroot']+"/boot/grub/grub.conf",etpConst['systemroot']+"/boot/grub/grub.conf.old.remove") f = open(etpConst['systemroot']+"/boot/grub/grub.conf","r") grub_conf = f.readlines() f.close()