# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 11 Mar 2008; Andrew Gaffney <agaffney@gentoo.org>
+ modules/catalyst_support.py, modules/generic_stage_target.py,
+ modules/grp_target.py:
+ Apply additional patches from bug 207862 for CONTENTS generation
+
10 Mar 2008; Andrew Gaffney <agaffney@gentoo.org>
targets/grp/grp-chroot.sh:
Call setup_myemergeopts after changing clst_FETCH
_ = 'tar-tvj'
elif file.endswith('.tar'):
_ = 'tar-tv'
-
- contents_function = _
- _ = contents_map[contents_function]
- return _[0](file,_[1],verbose)
+
+ if _ == 'auto':
+ warn('File %r has unknown type for automatic detection.' % (file, ))
+ return None
+ else:
+ contents_function = _
+ _ = contents_map[contents_function]
+ return _[0](file,_[1],verbose)
except:
raise CatalystError,\
"Error generating contents, is appropriate utility (%s) installed on your system?" \
for j in array:
contents=generate_contents(file,contents_function=j,\
verbose=self.settings.has_key("VERBOSE"))
- myf.write(contents)
+ if contents:
+ myf.write(contents)
myf.close()
def gen_digest_file(self,file):
files=[filename for filename in files if filename[0] != '.']
for i in files:
if os.path.isfile(normpath(destdir+"/"+i)):
- self.gen_contents_file(normpath(destdir+"/"+i))
+ #self.gen_contents_file(normpath(destdir+"/"+i))
self.gen_digest_file(normpath(destdir+"/"+i))
def set_action_sequence(self):