Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
fca4b947
Commit
fca4b947
authored
Jun 15, 2012
by
Clément Schreiner
Browse files
Add all binary package to the DB.
parent
9d32d711
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/debexpo_importer.py
View file @
fca4b947
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment