Commits

Anonymous committed 8df7eb5

fixed pathsé

Comments (0)

Files changed (1)

z3c/recipe/debian/__init__.py

             if source == 'etc':
                 etc_dir = source_dir
             # copying the tree now
-            target = os.path.join(debian_root,
+            target = os.path.join(debian_root, 'debian',
                                   'buildout-%s' % application_name, target)
             uptarget = os.path.split(target)[0]
             if not os.path.exists(uptarget):
             if (not os.path.isfile(path) or
                 not os.path.splitext(path) not in ('.cfg', '.py')):
                 continue
-            target = os.path.join(debian_root, path)
+            target = os.path.join(debian_root, 'debian',
+                                  'buildout-%s' % application_name
+                                  path)
+
             self._log('Copying %s to %s' % (path, target))
             shutil.copyfile(path, target)