[dak/master 3/8] bugfixes
Signed-off-by: Torsten Werner <twerner@debian.org>
---
daklib/contents.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/daklib/contents.py b/daklib/contents.py
index 6aadb66..840cb68 100755
--- a/daklib/contents.py
+++ b/daklib/contents.py
@@ -32,7 +32,7 @@ from daklib.threadpool import ThreadPool
from sqlalchemy import desc, or_
from subprocess import Popen, PIPE
-import os
+import os.path
class ContentsWriter(object):
'''
@@ -130,7 +130,7 @@ select bc.file, substring(o.section from position('/' in o.section) + 1) || '/'
Returns a formatted string for the filename argument.
'''
package_list = ','.join(package_list)
- return "%-60s%s\n" % (filename, package_list)
+ return "%-55s %s\n" % (filename, package_list)
def fetch(self):
'''
@@ -173,8 +173,9 @@ select bc.file, substring(o.section from position('/' in o.section) + 1) || '/'
'''
Returns the header for the Contents files as a string.
'''
+ header_file = None
try:
- filename = os.join(Config()['Dir::Templates'], 'contents')
+ filename = os.path.join(Config()['Dir::Templates'], 'contents')
header_file = open(filename)
return header_file.read()
finally:
--
1.7.2.3
Reply to: