From 4a9b59fdda8bbecca025ff2088a368338d73e48c Mon Sep 17 00:00:00 2001 From: Jono Yang Date: Tue, 17 Oct 2023 23:09:40 +0000 Subject: [PATCH] Fix small issues in command Signed-off-by: Jono Yang --- packagedb/management/commands/copy_legacy_package_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packagedb/management/commands/copy_legacy_package_data.py b/packagedb/management/commands/copy_legacy_package_data.py index 0fd19887..8b08ed14 100644 --- a/packagedb/management/commands/copy_legacy_package_data.py +++ b/packagedb/management/commands/copy_legacy_package_data.py @@ -87,13 +87,13 @@ def handle(self, *args, **options): datasource_id=package.datasource_id, file_references=package.file_references, ) - unsaved_packages.append(package) + unsaved_packages.append(new_package) for dependency in package.dependencies.all(): new_dependency = DependentPackage( package=new_package, purl=dependency.purl, - extracted_requirements=dependency.extracted_requirement, + extracted_requirement=dependency.extracted_requirement, scope=dependency.scope, is_runtime=dependency.is_runtime, is_optional=dependency.is_optional,