Verified Commit d6afcac8 authored by Baptiste Beauplat's avatar 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
......@@ -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()
......
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