/var/tmp/rpm-tmp.dFHsbt: line 1: [: missing `]'

Bill Nottingham notting at redhat.com
Thu Sep 22 19:04:09 UTC 2011


Andre Robatino (robatino at fedoraproject.org) said: 
> > Look at the scripts for the packages in your transaction (rpm -q --scripts
> > <...>), audit them for syntax errors.
> 
> Finally found that on Rawhide, it was simple-scan, already reported as
> https://bugzilla.redhat.com/show_bug.cgi?id=733532 . On today's F16 updates, I
> saw the error twice, once referring to line 1, and once to line 2. One of those
> was simple-scan again, I'm not sure about the other but I found errors in
> selinux-policy and selinux-policy-targeted and reported them as
> https://bugzilla.redhat.com/show_bug.cgi?id=740422 . I wish there was an easier
> way to find these if they're going to be happening this often.

The best way is to have the full transaction log and then you can reasonably
pinpoint the package based on where you got the message. Unless, of course,
it's an error in %posttrans.

RPM has the information as to what it's running a script from... perhaps
file a RFE to expose it?

Bill


More information about the test mailing list