Skip to content

Commit b7b5363

Browse files
dberzanoktf
authored andcommitted
Fix GitReader for recipes (#384)
1 parent b54c75a commit b7b5363

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

alibuild_helpers/utilities.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,12 @@ def __call__(self):
142142
m = re.search(r'^dist:(.*)@([^@]+)$', self.url)
143143
fn,gh = m.groups()
144144
err,d = getstatusoutput(format("GIT_DIR=%(dist)s/.git git show %(gh)s:%(fn)s.sh",
145-
dist=distdir, gh=gh, fn=fn.lower()))
145+
dist=self.configDir, gh=gh, fn=fn.lower()))
146146
if err:
147147
raise RuntimeError(format("Cannot read recipe %(fn)s from reference %(gh)s.\n" +
148148
"Make sure you run first (this will not alter your recipes):\n" +
149149
" cd %(dist)s && git remote update -p && git fetch --tags",
150150
dist=self.configDir, gh=gh, fn=fn))
151-
warning("Overriding %s from reference %s" % (fn,gh))
152151
return d
153152

154153
def parseRecipe(reader):

0 commit comments

Comments
 (0)