- fix factory submission (clam.tcl)

OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=267
This commit is contained in:
Reinhard Max 2024-12-18 13:56:22 +00:00 committed by Git OBS Bridge
parent adb646ae3c
commit 7c9dfc0617
3 changed files with 6 additions and 38 deletions

View File

@ -1,38 +0,0 @@
#!/usr/bin/tclsh
package require Expect
proc pne {x} {
if {$x != ""} {
puts $x
}
}
set x 0
set L ""
set C ""
log_user 0
spawn clamscan eicar_test_files
expect_before -re "((L|C)\[^\r\]*)\r" {
set $expect_out(2,string) $expect_out(1,string)
exp_continue
} eof {
pne $L
pne $C
pne $expect_out(buffer)
puts "*** clamscan died! ***"
exit 1
}
expect "\n"; # newline after "Loading: ..."
expect "\n"; # newline after "Compiling: ..."
expect_before
pne $L
pne $C
puts ""
log_user 1
expect "FOUND" {
incr x
exp_continue
} eof
if {$x ne 3} {
exit 1
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 9 20:21:42 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- fix factory submission (clam.tcl)
-------------------------------------------------------------------
Tue Sep 10 13:05:08 UTC 2024 - Reinhard Max <max@suse.com>

View File

@ -2,6 +2,7 @@
# spec file for package clamav
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed