[namcap] makedepends: Replace bzr with breezy

Message ID 20200209094113.85948-1-michael.straube@posteo.de
State New
Headers show
Series
  • [namcap] makedepends: Replace bzr with breezy
Related show

Commit Message

Jouke Witteveen via arch-projects Feb. 9, 2020, 9:41 a.m. UTC
The 'bzr' package was replaced with 'breezy' in the repos.
Update the VCS makedepends rule to report the correct package.

Signed-off-by: Michael Straube <michael.straube@posteo.de>
---
 Namcap/rules/makedepends.py               | 2 +-
 Namcap/tests/pkgbuild/test_makedepends.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/Namcap/rules/makedepends.py b/Namcap/rules/makedepends.py
index 380a089..b319e7c 100644
--- a/Namcap/rules/makedepends.py
+++ b/Namcap/rules/makedepends.py
@@ -48,7 +48,7 @@  class VCSMakedepends(PkgbuildRule):
 
 	def analyze(self, pkginfo, pkgbuild):
 		vcs = {
-			'bzr' : 'bzr',
+			'bzr' : 'breezy',
 			'git' : 'git',
 			'hg' : 'mercurial',
 			'svn' : 'subversion',
diff --git a/Namcap/tests/pkgbuild/test_makedepends.py b/Namcap/tests/pkgbuild/test_makedepends.py
index d443b2b..676af33 100644
--- a/Namcap/tests/pkgbuild/test_makedepends.py
+++ b/Namcap/tests/pkgbuild/test_makedepends.py
@@ -97,7 +97,7 @@  package() {
 
 	def test_example1(self):
 		# Example 1
-		makedeps = ['bzr', 'git', 'mercurial', 'subversion']
+		makedeps = ['breezy', 'git', 'mercurial', 'subversion']
 		r = self.run_on_pkg(self.pkgbuild1)
 		self.assertEqual(r.errors, [])
 		self.assertEqual(set(r.warnings),