X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fplugins%2Frwpkgmgr%2Frift%2Ftasklets%2Frwpkgmgr%2Fdownloader%2Fcopy.py;h=c296c91d4603465fe9d76c343184afc59333d798;hb=refs%2Fheads%2Fpm_phase2;hp=b1f11ec3b0e78849c3286e476b2f534a4e5fcc68;hpb=1710c5baaf44e962f63273f5f04e9bbcc62aa2e5;p=osm%2FSO.git diff --git a/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/downloader/copy.py b/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/downloader/copy.py index b1f11ec3..c296c91d 100644 --- a/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/downloader/copy.py +++ b/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/downloader/copy.py @@ -128,16 +128,14 @@ class PackageFileCopier: store = self.proxy._get_store(self.package_type) src_path = store._get_package_dir(self.src_package_id) self.src_package = store.get_package(self.src_package_id) - src_desc_name = self.src_package.descriptor_name - src_copy_path = os.path.join(src_path, src_desc_name) - self.dest_copy_path = os.path.join(store.DEFAULT_ROOT_DIR, - self.dest_package_id, - self.dest_package_name) + self.dest_copy_path = os.path.join( + store.DEFAULT_ROOT_DIR, + self.dest_package_id) self.log.debug("Copying contents from {src} to {dest}". - format(src=src_copy_path, dest=self.dest_copy_path)) + format(src=src_path, dest=self.dest_copy_path)) - shutil.copytree(src_copy_path, self.dest_copy_path) + shutil.copytree(src_path, self.dest_copy_path) def _create_descriptor_file(self): """ Update descriptor file for the newly copied descriptor catalog.