diff mbox series

[9/9] UBUNTU: [Packaging] generate nvidia version mappings at clean time -- add suppress support

Message ID 20210122162312.459010-11-apw@canonical.com
State New
Headers show
Series LP: #1912803 -- autogenerate Nvidia rules/control | expand

Commit Message

Andy Whitcroft Jan. 22, 2021, 4:23 p.m. UTC
Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 debian/scripts/gen-rules | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/debian/scripts/gen-rules b/debian/scripts/gen-rules
index fb8717e..19830c0 100755
--- a/debian/scripts/gen-rules
+++ b/debian/scripts/gen-rules
@@ -15,10 +15,12 @@  fi
 
 nvidia_desktop=
 nvidia_server=
+nvidia_ignore=
 while read command arg
 do
 	case "$command" in
 	option)		;;
+	suppress)		nvidia_ignore="$nvidia_ignore $arg"; continue ;;
 	*)		continue ;;
 	esac
 
@@ -53,6 +55,9 @@  EOL
 			;;
 		*) continue ;;
 		esac
+		case " $nvidia_ignore " in
+		*\ $package\ *)		continue ;;
+		esac
 
 		case " $extra " in
 		*\ signonly\ *)		continue ;;