create missing packages_dir()

This commit is contained in:
Barış Metin
2005-10-02 20:53:51 +00:00
parent 1b50a1a370
commit 0df4f7b188
+7 -2
View File
@@ -400,8 +400,13 @@ class PisiBuild:
fp = os.path.join(ctx.config.options.output_dir, f)
if os.path.isfile(fp):
files.append(fp)
for f in os.listdir(ctx.config.packages_dir()):
fp = os.path.join(ctx.config.packages_dir(), f)
packages_dir = ctx.config.packages_dir()
# FIXME: packages_dir() should be there!
if not os.path.exists(packages_dir):
os.makedirs(packages_dir)
for f in os.listdir(packages_dir):
fp = os.path.join(packages_dir, f)
if os.path.isfile(fp):
files.append(fp)