From 0df4f7b18888e0b2ca268118602e8985907a4423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Sun, 2 Oct 2005 20:53:51 +0000 Subject: [PATCH] create missing packages_dir() --- pisi/build.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pisi/build.py b/pisi/build.py index 2d998e3d..c967b02b 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -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)