check_diskspace_func fails on df output wrap

Bug #685443 reported by Michael Neuffer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
h264enc (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: h264enc

Whenever df wraps a line, check_diskspace_func will grab the wrong output

+ check_diskspace_func
++ tail -n 1
++ awk '{print $4}'
+++ dirname /opt/data03/test/Sintel_DivXPlusHD_2Titles_6500kbps.mkv
++ df -m /opt/data03/media01/test
+ HDOUT=71%
++ df -m /root/.h264enc/job32451
++ tail -n 1
++ awk '{print $4}'
+ HDCONF=64932
+ '[' 71% -le 4096 -o 64932 -le 4096 ']'
/usr/bin/h264enc: line 3093: [: 71%: integer expression expected

df -m "$(dirname /opt/data03/media01/test/Sintel_DivXPlusHD_2Titles_6500kbps.mkv )"
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/smd1_DATASTOR01
                       5721314 3980704 1683390 71% /opt/data03

echo $(df -m "$(dirname /opt/data03/media01/test/Sintel_DivXPlusHD_2Titles_6500kbps.mkv )" | tail -n 1 | awk '{print $4}')
71%

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: h264enc 9.2.8~dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.37-7.19-generic 2.6.37-rc3
Uname: Linux 2.6.37-7-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sun Dec 5 10:57:40 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: h264enc

Revision history for this message
Michael Neuffer (neuffer) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.