summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-08 15:26:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-08 15:26:34 +0000
commite13acb4113ce75226664c3006a9776cc885e860d (patch)
tree716c5c367c8bd635376f5d7d2fef8981f1bed915
parente14031fbe4924819ab4c9705eef2bedccae1506c (diff)
downloadbitbake-e13acb4113ce75226664c3006a9776cc885e860d.tar.gz
fetch2/gitannex: Fix function arguments to match bitbake master
This code clearly uses an earlier fetcher API. Update it to match master. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/gitannex.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bb/fetch2/gitannex.py b/lib/bb/fetch2/gitannex.py
index 02711b0be..0f3789745 100644
--- a/lib/bb/fetch2/gitannex.py
+++ b/lib/bb/fetch2/gitannex.py
@@ -28,7 +28,7 @@ from bb.fetch2 import runfetchcmd
from bb.fetch2 import logger
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.
"""
@@ -44,7 +44,7 @@ class GitANNEX(Git):
return False
- def update_annex(self, u, ud, d):
+ def update_annex(self, ud, d):
try:
runfetchcmd("%s annex get --all" % (ud.basecmd), d, quiet=True)
except bb.fetch.FetchError:
@@ -53,13 +53,13 @@ class GitANNEX(Git):
return True
- def download(self, loc, ud, d):
- Git.download(self, loc, ud, d)
+ def download(self, ud, d):
+ Git.download(self, ud, d)
os.chdir(ud.clonedir)
annex = self.uses_annex(ud, d)
if annex:
- self.update_annex(loc, ud, d)
+ self.update_annex(ud, d)
def unpack(self, ud, destdir, d):
Git.unpack(self, ud, destdir, d)