diff --git a/source/rock/frontend/pkgconfig/PkgInfo.ooc b/source/rock/frontend/pkgconfig/PkgInfo.ooc index 8f229c57..138f797c 100644 --- a/source/rock/frontend/pkgconfig/PkgInfo.ooc +++ b/source/rock/frontend/pkgconfig/PkgInfo.ooc @@ -45,7 +45,8 @@ PkgInfo: class { for(token in StringTokenizer new(string, ' ')) { if(token startsWith?(prefix)) { - list add(token substring(prefixLength) trim(' ') trim('\n')) + add := token substring(prefixLength) trim(' ') trim('\n') + if(!add empty?()) list add(add) } }