Control: tags -1 pending

On 20-02-2023 16:20, Paul Gevers wrote:
I have the attached debdiff ready to handle with the stable release managers.

I have uploaded the attached debdiff, I took the liberty to also fix the autopkgtest (cherry-pick from unstable).

Paul
diff --git a/debian/changelog b/debian/changelog
index da6aa89..15f7177 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+command-not-found (20.10.1-1+deb11u1) bullseye; urgency=medium
+
+  * creator.py: add new non-free-firmware component (Closes: #1029803)
+  * debian/tests: Add adduser dependency, fix test to not assume vim-tiny
+    matches for vim. (from bookworm branch)
+
+ -- Paul Gevers <elb...@debian.org>  Wed, 22 Feb 2023 16:09:19 +0100
+
 command-not-found (20.10.1-1) unstable; urgency=medium
 
   * Trim trailing whitespace.
diff --git 
a/debian/patches/0001-creator.py-add-new-non-free-firmware-component.patch 
b/debian/patches/0001-creator.py-add-new-non-free-firmware-component.patch
new file mode 100644
index 0000000..ad4b3d8
--- /dev/null
+++ b/debian/patches/0001-creator.py-add-new-non-free-firmware-component.patch
@@ -0,0 +1,25 @@
+From 95e94853f4abff33f576e58ebeab795f6cb1a62e Mon Sep 17 00:00:00 2001
+From: Paul Gevers <elb...@debian.org>
+Date: Sun, 19 Feb 2023 21:45:07 +0100
+Subject: [PATCH] creator.py: add new non-free-firmware component
+
+Closes: #1029803
+---
+ CommandNotFound/db/creator.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/CommandNotFound/db/creator.py b/CommandNotFound/db/creator.py
+index 75d01f1..8f6ef70 100755
+--- a/CommandNotFound/db/creator.py
++++ b/CommandNotFound/db/creator.py
+@@ -20,6 +20,7 @@ component_priorities = {
+     'universe': 100,
+     'contrib': 80,
+     'restricted': 60,
++    'non-free-firmware': 50,
+     'non-free': 40,
+     'multiverse': 20,
+ }
+-- 
+2.39.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 28cdfac..a459c03 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 bts.diff
 0003-cnf-update-db-Add-support-for-Contents-files.patch
+0001-creator.py-add-new-non-free-firmware-component.patch
diff --git a/debian/tests/control b/debian/tests/control
index 4062764..956933f 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,4 +1,4 @@
 Tests: smoke
 Restrictions: needs-root
-Depends: command-not-found
+Depends: command-not-found, adduser
 
diff --git a/debian/tests/smoke b/debian/tests/smoke
index 4f0e5ae..7236ab2 100755
--- a/debian/tests/smoke
+++ b/debian/tests/smoke
@@ -10,7 +10,7 @@ apt-get update
 
 echo "Ensure we have results from c-n-f"
 /usr/lib/command-not-found --ignore-installed vim 2>&1 | grep vim
-/usr/lib/command-not-found --ignore-installed vim 2>&1 | grep vim-tiny
+/usr/lib/command-not-found --ignore-installed vim 2>&1 | grep "command '.*' 
from deb "
 
 
 echo "Add testuser"

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to