Unverified Commit 7039d042 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Keep the metadata for the remote files



We will need the metadata when comparing the work tree to the latest
commit.

Signed-off-by: Andrej Shadura's avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent e7e1dc3f
......@@ -101,7 +101,9 @@ class DPut(object):
"""
Returns a list of files inside an specific package
"""
return osc.core.meta_get_filelist(conf.config['apiurl'], self.project_name, self.package_name)
return {
f.name: f for f in osc.core.meta_get_filelist(conf.config['apiurl'], self.project_name, self.package_name, verbose=True)
}
@cmdln.option('--maintained-in-git', action='store_true',
......@@ -149,7 +151,7 @@ def do_dput(self, subcmd, opts, proj_name, dsc_or_changes_file):
retained = set()
downloaded = set()
for f in remote_file_list:
for f in remote_file_list.keys():
if f.endswith('.dsc'):
u = osc.core.makeurl(conf.config['apiurl'],
['source', proj_name, package_name, f],
......
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