Added a patch from Bardur Arantsson <bugs-gentoo.org@scientician.net> which resolves...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 22 Nov 2006 16:37:33 +0000 (16:37 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 22 Nov 2006 16:37:33 +0000 (16:37 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1191 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/livecd_stage2_target.py
targets/support/livecdfs-update.sh

index c883a60718bca4c30a575729cdebcd27bfc01c25..dabbd274b2aebe7cf3331d9af9a8eaf296afd9f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
 # $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.664 2006/10/02 20:41:53 wolf31o2 Exp $
 
+  22 Nov 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+  modules/livecd_stage2_target.py, targets/support/livecdfs-update.sh:
+  Added a patch from Bardur Arantsson <bugs-gentoo.org@scientician.net> which
+  resolves an issue where a variable could be accessed unitialized in obscure
+  circumstances. This is wrt bug #144984.
+
   22 Nov 2006; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
   modules/generic_stage_target.py, modules/livecd_stage2_target.py,
   modules/stage2_target.py, modules/stage4_target.py:
index a8e2fdc79b448b34176b8dc7db39e9ae022d2efa..5df2aa7b49cda8e05243d71d1c673f07321907a0 100644 (file)
@@ -73,6 +73,7 @@ class livecd_stage2_target(generic_stage_target):
        
        def unpack(self):
                 unpack=True
+               display_msg=None
 
                 clst_unpack_hash=read_from_clst(self.settings["autoresume_path"]+"unpack")
 
@@ -111,6 +112,9 @@ class livecd_stage2_target(generic_stage_target):
                                 if not os.path.exists(self.settings["pkgcache_path"]):
                                         os.makedirs(self.settings["pkgcache_path"],0755)
 
+                       if not display_msg:
+                               raise CatalystError,"Could not find appropriate source. Please check the 'source_subpath' setting in the spec file."
+
                         print display_msg
                         cmd(unpack_cmd,error_msg,env=self.env)
 
index 0ee63b68859469ab581b9ab29be55dbfc1e0c547..cb871f04e70b35a1ab34fe6f9c989770a49ea940 100755 (executable)
@@ -346,7 +346,8 @@ case ${clst_livecd_type} in
                                                /home/${username}/Desktop
                                        cp -f /usr/share/applications/installer-dialog.desktop \
                                                /home/${username}/Desktop
-                                       sed -i -e 's:Exec=installer-dialog:Exec=sudo installer-dialog:' \
+                                       sed -i -e \
+                                               's:Exec=installer-dialog:Exec=sudo installer-dialog:' \
                                                /home/${username}/Desktop/installer-dialog.desktop
                                        sed -i -e 's:Exec=installer-gtk:Exec=installer:' \
                                                /home/${username}/Desktop/installer-gtk.desktop