Verified Commit c6861201 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Make sure tildas and pluses in the dsc names work correctly



This is almost what the upstream does, except we don’t care about
encodings.

Signed-off-by: Andrej Shadura's avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 1a6ed8ab
......@@ -5,7 +5,7 @@ from __future__ import print_function
import os
from pathlib import Path
from tempfile import TemporaryDirectory
from urllib.request import HTTPError
from urllib.request import pathname2url, HTTPError
import osc.conf as conf
import osc.core
......@@ -178,7 +178,10 @@ def do_dput(self, subcmd, opts, *args):
for f in remote_file_list.keys():
if f.endswith('.dsc'):
u = osc.core.makeurl(conf.config['apiurl'],
['source', proj_name, package_name, f],
['source',
proj_name,
package_name,
pathname2url(f)],
query={})
remote_dsc = Dsc(osc.core.streamfile(u, bufsize='line'))
......
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