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
d6afcac8
Verified
Commit
d6afcac8
authored
Nov 06, 2021
by
Baptiste Beauplat
Browse files
Remove always true test from Origin.fetch()
Data comes from ControlFiles where origin must match a non-null regexp
parent
15967ddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/tools/debian/origin.py
View file @
d6afcac8
...
...
@@ -60,25 +60,24 @@ class Origin():
# For the origin tarball and its signature
for
origin
in
origin_files
:
if
origin
:
if
isfile
(
join
(
self
.
dest_dir
,
str
(
origin
))):
# Origin file is present in the upload
continue
if
repo
.
fetch_from_pool
(
self
.
package
,
if
isfile
(
join
(
self
.
dest_dir
,
str
(
origin
))):
# Origin file is present in the upload
continue
if
repo
.
fetch_from_pool
(
self
.
package
,
self
.
component
,
str
(
origin
),
self
.
dest_dir
):
# Origin fetched from the local repository
continue
if
not
self
.
is_new
:
# If the package is already in Debian, retrieve it from the
# official archive
archive
.
fetch_from_pool
(
self
.
package
,
self
.
component
,
str
(
origin
),
self
.
dest_dir
):
# Origin fetched from the local repository
continue
if
not
self
.
is_new
:
# If the package is already in Debian, retrieve it from the
# official archive
archive
.
fetch_from_pool
(
self
.
package
,
self
.
component
,
str
(
origin
),
self
.
dest_dir
)
self
.
dest_dir
)
def
validate
(
self
,
source_origin_files
):
client
=
ClientFTPMasterAPI
()
...
...
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