# Copyright 2002-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2
+ 07 Dec 2008; Andrew Gaffney <agaffney@gentoo.org>
+ modules/generic_stage_target.py:
+ Add support for digests="all" for gentoo bug #209611
+
07 Dec 2008; Andrew Gaffney <agaffney@gentoo.org>
examples/netboot2_template.spec, targets/support/kmerge.sh:
Automatically append --netboot to GK_ARGS for netboot2 target Remove
from generic_target import *
from stat import *
import catalyst_lock
+
class generic_stage_target(generic_target):
def __init__(self,myspec,addlargs):
array.sort()
for f in [file, file+'.CONTENTS']:
if os.path.exists(f):
- for j in array:
- hash=generate_hash(f,hash_function=j,verbose=\
- self.settings.has_key("VERBOSE"))
- myf.write(hash)
+ if "all" in array:
+ for k in hash_map.keys():
+ hash=generate_hash(f,hash_function=k,verbose=\
+ self.settings.has_key("VERBOSE"))
+ myf.write(hash)
+ else:
+ for j in array:
+ hash=generate_hash(f,hash_function=j,verbose=\
+ self.settings.has_key("VERBOSE"))
+ myf.write(hash)
myf.close()
def purge(self):