Skip to content

Commit

Permalink
Fix small issues in command
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Oct 17, 2023
1 parent 6640a8e commit 4a9b59f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packagedb/management/commands/copy_legacy_package_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4a9b59f

Please sign in to comment.