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
870f8e7f
Commit
870f8e7f
authored
Jul 13, 2012
by
Clément Schreiner
Browse files
Skip the importing of tags from debtags database for packages already in debian.
parent
405ae114
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/plugins/debtags.py
View file @
870f8e7f
...
...
@@ -95,11 +95,11 @@ class DebtagsPlugin(BasePlugin):
q
=
q
.
filter_by
(
package_version_id
=
self
.
package_version
.
id
)
self
.
binary_packages
=
q
.
all
()
if
self
.
_package_in_debian
:
for
pkg
in
self
.
binary_packages
:
for
tag
in
self
.
_tags_from_db
[
pkg
.
name
]:
self
.
_new_result
(
Debtag
,
tag
=
tag
,
source
=
'debtags'
,
package
=
pkg
)
#
if self._package_in_debian:
#
for pkg in self.binary_packages:
#
for tag in self._tags_from_db[pkg.name]:
#
self._new_result(Debtag, tag = tag, source = 'debtags',
#
package = pkg)
log
.
debug
(
'Applying debtags heuristics to the 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