File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1999,14 +1999,17 @@ def compile(self):
19991999 if not srcdir :
20002000 return
20012001 if isinstance (srcdir , dict ):
2002- url = next (iter (srcdir ))
2003- if not url :
2004- raise ReframeError (f'The { srcdir } misses the url as key' )
2005- elif not osext .is_url (url ):
2002+ if 'url' not in srcdir :
2003+ raise ReframeError (f'The { srcdir } misses the url key' )
2004+
2005+ url = srcdir ['url' ]
2006+ if not osext .is_url (url ):
20062007 raise ReframeError (f'The { srcdir } syntax only supports '
20072008 'git repositories' )
20082009 self ._clone_to_stagedir (url ,
20092010 files = srcdir [url ]['files' ] if 'files'
2011+ in srcdir [url ] else None ,
2012+ opts = srcdir [url ]['opts' ] if 'opts'
20102013 in srcdir [url ] else None )
20112014 elif osext .is_url (srcdir ):
20122015 self ._clone_to_stagedir (srcdir )
You can’t perform that action at this time.
0 commit comments