Add opt-in Plasma fingerprint workaround
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
rpm_path=$1
|
||||
expected_base=$2
|
||||
provides=$(rpm -qp --provides "$rpm_path")
|
||||
files=$(rpm -qpl "$rpm_path")
|
||||
|
||||
rpm -K --nosignature "$rpm_path" >/dev/null
|
||||
[[ $(rpm -qp --qf '%{NAME}' "$rpm_path") == kscreenlocker ]]
|
||||
grep -qx 'plasma-fingerprint-workaround-payload = 1' <<<"$provides"
|
||||
grep -qx "plasma-fingerprint-workaround-base = $expected_base" <<<"$provides"
|
||||
grep -qx '/usr/lib/systemd/system-sleep/restart-fprintd-after-resume' <<<"$files"
|
||||
|
||||
printf 'Patched KScreenLocker package tests passed.\n'
|
||||
Reference in New Issue
Block a user