Commit fca4b947 authored by Clément Schreiner's avatar Clément Schreiner
Browse files

Add all binary package to the DB.

parent 9d32d711
......@@ -307,8 +307,6 @@ class Importer(object):
source_package = SourcePackage(package_version=package_version)
meta.session.add(source_package)
binary_package = None
# Add PackageFile objects to the database for each uploaded file
for file in self.files:
filename = os.path.join(self.changes.get_pool_path(), file)
......@@ -323,8 +321,6 @@ class Importer(object):
# Check for binary or source package file
if file.endswith('.deb'):
# Only create a BinaryPackage if there actually binary package files
if binary_package is None:
binary_package = BinaryPackage(package_version=package_version, arch=file[:-4].split('_')[-1])
meta.session.add(binary_package)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment