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
6db3a8b5
Commit
6db3a8b5
authored
Jul 20, 2012
by
Clément Schreiner
Browse files
Update the repository before plugins are run.
parent
495c47d4
Changes
1
Show whitespace changes
Inline
Side-by-side
debexpo/importer/importer.py
View file @
6db3a8b5
...
...
@@ -526,8 +526,6 @@ class Importer(object):
if
not
os
.
access
(
pylons
.
config
[
'debexpo.repository'
],
os
.
W_OK
):
self
.
_fail
(
'debexpo.repository is not writeable'
)
# Create th§e database rows
self
.
_create_db_entries
()
# Loop through parent directories in the target installation directory to make sure they
...
...
@@ -546,6 +544,14 @@ class Importer(object):
self
.
_remove_temporary_files
()
# Create the database rows
self
.
_create_db_entries
()
# Refresh the Sources/Packages files.
log
.
debug
(
'Updating Sources and Packages files'
)
r
=
Repository
(
pylons
.
config
[
'debexpo.repository'
])
r
.
update
()
# Run QA plugins
self
.
_run_plugins
(
'qa'
)
...
...
@@ -553,16 +559,13 @@ class Importer(object):
f
=
open
(
self
.
changes_file
)
changes_contents
=
f
.
read
()
f
.
close
()
#Plugins('post-successful-upload', self.changes, self.changes_file,
# changes_contents=changes_contents)
# Remove the changes file
self
.
_remove_changes
()
# Refresh the Sources/Packages files.
log
.
debug
(
'Updating Sources and Packages files'
)
r
=
Repository
(
pylons
.
config
[
'debexpo.repository'
])
r
.
update
()
log
.
debug
(
'Done'
)
return
0
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