Style nitpicks.
This commit is contained in:
parent
56ad8d8231
commit
73dc65b259
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2006-2007 Red Hat, Inc.
|
# Copyright (C) 2008 Red Hat, Inc.
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# modify it under the terms of the GNU Lesser General Public
|
||||||
@ -115,8 +115,8 @@ class BuildPackager(Packager):
|
|||||||
|
|
||||||
def get_files(self):
|
def get_files(self):
|
||||||
return list_files(self.build_dir,
|
return list_files(self.build_dir,
|
||||||
ignore_dirs=[ 'po', 'dist', '.git' ],
|
ignore_dirs=['po', 'dist', '.git'],
|
||||||
ignore_files=[ '.gitignore' ])
|
ignore_files=['.gitignore'])
|
||||||
|
|
||||||
class XOPackager(BuildPackager):
|
class XOPackager(BuildPackager):
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
@ -141,12 +141,10 @@ class SourcePackager(Packager):
|
|||||||
|
|
||||||
def get_files(self):
|
def get_files(self):
|
||||||
return list_files(self.config.source_dir,
|
return list_files(self.config.source_dir,
|
||||||
ignore_dirs=[ 'locale', 'dist', '.git' ],
|
ignore_dirs=['locale', 'dist', '.git'],
|
||||||
ignore_files=[ '.gitignore' ])
|
ignore_files=['.gitignore'])
|
||||||
|
|
||||||
def package(self):
|
def package(self):
|
||||||
|
|
||||||
|
|
||||||
tar = tarfile.open(self.package_path, "w")
|
tar = tarfile.open(self.package_path, "w")
|
||||||
for f in self.get_files():
|
for f in self.get_files():
|
||||||
tar.add(os.path.join(self.config.source_dir, f),
|
tar.add(os.path.join(self.config.source_dir, f),
|
||||||
|
Loading…
Reference in New Issue
Block a user