Fix path to META.yml.
This commit is contained in:
parent
ccc7b934a2
commit
0c1abd29e3
1 changed files with 2 additions and 2 deletions
|
@ -603,13 +603,13 @@ class Make(BuildSystem):
|
||||||
|
|
||||||
def get_declared_dependencies(self):
|
def get_declared_dependencies(self):
|
||||||
# TODO(jelmer): Split out the perl-specific stuff?
|
# TODO(jelmer): Split out the perl-specific stuff?
|
||||||
if os.path.exists("META.yml"):
|
if os.path.exists(os.path.join(self.path, "META.yml")):
|
||||||
# See http://module-build.sourceforge.net/META-spec-v1.4.html for
|
# See http://module-build.sourceforge.net/META-spec-v1.4.html for
|
||||||
# the specification of the format.
|
# the specification of the format.
|
||||||
import ruamel.yaml
|
import ruamel.yaml
|
||||||
import ruamel.yaml.reader
|
import ruamel.yaml.reader
|
||||||
|
|
||||||
with open("META.yml", "rb") as f:
|
with open(os.path.join(self.path, "META.yml"), "rb") as f:
|
||||||
try:
|
try:
|
||||||
data = ruamel.yaml.load(f, ruamel.yaml.SafeLoader)
|
data = ruamel.yaml.load(f, ruamel.yaml.SafeLoader)
|
||||||
except ruamel.yaml.reader.ReaderError as e:
|
except ruamel.yaml.reader.ReaderError as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue