From: Michael Tremer Date: Sat, 26 Feb 2011 18:28:19 +0000 (+0100) Subject: Fix another packing error with directories. X-Git-Tag: 0.9.3~107^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=556b430566840e1df769d0cc7a9ab57bc1467c9d;p=pakfire.git Fix another packing error with directories. --- diff --git a/pakfire/packages/packager.py b/pakfire/packages/packager.py index f92562077..b2f557c57 100644 --- a/pakfire/packages/packager.py +++ b/pakfire/packages/packager.py @@ -327,6 +327,10 @@ class Packager(object): # Dead symlinks cannot be copied by shutil. os.symlink(os.readlink(file_real), file_tmp) + elif os.path.isdir(file_real): + if not os.path.exists(file_tmp): + os.makedirs(file_tmp) + else: shutil.copy2(file_real, file_tmp)