forked from adamm/git-importer
resolve links if there's conflict
This commit is contained in:
@@ -141,7 +141,7 @@ class OBS:
|
||||
return User().parse(root, userid)
|
||||
|
||||
def files(self, project, package, revision):
|
||||
root = self._xml(f"source/{project}/{package}", rev=revision, expand=1)
|
||||
root = self._xml(f"source/{project}/{package}", rev=revision, expand=1, linkrev="base")
|
||||
return [
|
||||
(e.get("name"), int(e.get("size")), e.get("md5"))
|
||||
for e in root.findall("entry")
|
||||
@@ -152,7 +152,7 @@ class OBS:
|
||||
url = osc.core.makeurl(
|
||||
self.url,
|
||||
["source", project, package, name],
|
||||
{"rev": revision, "expand": 1},
|
||||
{"rev": revision, "expand": 1, "linkrev": "base"},
|
||||
)
|
||||
return osc.core.http_GET(url)
|
||||
except HTTPError as e:
|
||||
@@ -160,7 +160,7 @@ class OBS:
|
||||
url = osc.core.makeurl(
|
||||
self.url,
|
||||
["source", project, package, name],
|
||||
{"rev": revision, "expand": 1, "deleted": 1},
|
||||
{"rev": revision, "expand": 1, "deleted": 1, "linkrev": "base"},
|
||||
)
|
||||
return osc.core.http_GET(url)
|
||||
|
||||
@@ -191,7 +191,7 @@ class OBS:
|
||||
logging.debug(f"Use cached {project}/{package}/{name}")
|
||||
|
||||
def list(self, project, package, srcmd5, linkrev):
|
||||
params = {"rev": srcmd5, "expand": "1"}
|
||||
params = {"rev": srcmd5, "expand": "1", "linkrev": "base"}
|
||||
if linkrev:
|
||||
params["linkrev"] = linkrev
|
||||
|
||||
|
||||
Reference in New Issue
Block a user