mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
bitbake: fetch2/gitannex: Fix function arguments to match bitbake master
This code clearly uses an earlier fetcher API. Update it to match master. (Bitbake rev: e13acb4113ce75226664c3006a9776cc885e860d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -28,7 +28,7 @@ from bb.fetch2 import runfetchcmd
|
|||||||
from bb.fetch2 import logger
|
from bb.fetch2 import logger
|
||||||
|
|
||||||
class GitANNEX(Git):
|
class GitANNEX(Git):
|
||||||
def supports(self, url, ud, d):
|
def supports(self, ud, d):
|
||||||
"""
|
"""
|
||||||
Check to see if a given url can be fetched with git.
|
Check to see if a given url can be fetched with git.
|
||||||
"""
|
"""
|
||||||
@@ -44,7 +44,7 @@ class GitANNEX(Git):
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def update_annex(self, u, ud, d):
|
def update_annex(self, ud, d):
|
||||||
try:
|
try:
|
||||||
runfetchcmd("%s annex get --all" % (ud.basecmd), d, quiet=True)
|
runfetchcmd("%s annex get --all" % (ud.basecmd), d, quiet=True)
|
||||||
except bb.fetch.FetchError:
|
except bb.fetch.FetchError:
|
||||||
@@ -53,13 +53,13 @@ class GitANNEX(Git):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def download(self, loc, ud, d):
|
def download(self, ud, d):
|
||||||
Git.download(self, loc, ud, d)
|
Git.download(self, ud, d)
|
||||||
|
|
||||||
os.chdir(ud.clonedir)
|
os.chdir(ud.clonedir)
|
||||||
annex = self.uses_annex(ud, d)
|
annex = self.uses_annex(ud, d)
|
||||||
if annex:
|
if annex:
|
||||||
self.update_annex(loc, ud, d)
|
self.update_annex(ud, d)
|
||||||
|
|
||||||
def unpack(self, ud, destdir, d):
|
def unpack(self, ud, destdir, d):
|
||||||
Git.unpack(self, ud, destdir, d)
|
Git.unpack(self, ud, destdir, d)
|
||||||
|
|||||||
Reference in New Issue
Block a user