From 7467713699a4b4a402629a13ff1b43c0531942e4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 15 Aug 2022 19:36:37 +0200 Subject: [PATCH] Oopsies --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 1bea5d8..ad86eec 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1505,7 +1505,7 @@ class Manifest(TestSuite): ) return - if "upstream" in self.manifest and self.manifest["upstream"] != self.manifest["license"]: + if "upstream" in self.manifest and "license" in self.manifest["upstream"] and self.manifest["upstream"]["license"] != self.manifest["license"]: yield Warning("The content of 'license' in the 'upstream' block should be the same as 'license' (yes sorry, this is duplicate info, this is transitional for the manifest v2 ...)") @test()