mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-24 22:06:14 +01:00
fix checkout of meta files
typo leaded to wrong parameter
This commit is contained in:
parent
035457cc26
commit
5f1109072f
@ -4676,7 +4676,7 @@ def get_source_file(apiurl, prj, package, filename, targetfilename=None, revisio
|
||||
targetfilename = targetfilename or filename
|
||||
query = {}
|
||||
if meta:
|
||||
query['rev'] = 1
|
||||
query['meta'] = 1
|
||||
if revision:
|
||||
query['rev'] = revision
|
||||
u = makeurl(apiurl, ['source', prj, package, pathname2url(filename.encode(locale.getpreferredencoding(), 'replace'))], query=query)
|
||||
|
@ -222,7 +222,7 @@ class TestUpdate(OscTestCase):
|
||||
self._check_digests('testUpdateServiceFilesAddDelete_files', '_service:foo', '_service:bar')
|
||||
|
||||
@GET('http://localhost/source/osctest/metamode?meta=1&rev=latest', file='testUpdateMetaMode_filesremote')
|
||||
@GET('http://localhost/source/osctest/metamode/_meta?rev=1', file='testUpdateMetaMode__meta')
|
||||
@GET('http://localhost/source/osctest/metamode/_meta?meta=1&rev=1', file='testUpdateMetaMode__meta')
|
||||
def testUpdateMetaMode(self):
|
||||
"""update package with metamode enabled"""
|
||||
self._change_to_pkg('metamode')
|
||||
|
Loading…
Reference in New Issue
Block a user