From 61e85350e3994da5c9c15f1bcc1098891dac38fa Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Sat, 21 Apr 2012 15:27:22 -0400 Subject: Fix modpkg typo. Don't use old fieldVals method. Also fixes the number of space in the indent. I remember that two is preferred. --- bin/modpkg | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/modpkg b/bin/modpkg index 4ce3ff1..c3ec908 100755 --- a/bin/modpkg +++ b/bin/modpkg @@ -51,9 +51,7 @@ List do( match := method( mux := PkgDataFieldValMux clone call evalArgs foreach(arg, - fieldVals foreach(fv, - fv matches(arg) ifTrue(mux addValue(fv)) - ) + foreach(fv, fv matches(arg) ifTrue(mux addValue(fv))) ) mux ) @@ -144,6 +142,7 @@ SrcPkgFile := Object clone do( # PKGBUILDs and .install files are BashFiles. We indent them and add logic for starting funcs. BashFunc := SrcPkgFileSect clone do( + indentLevel := 2 init := method( self name := nil ) @@ -161,11 +160,11 @@ BashFunc := SrcPkgFileSect clone do( ) append := method(text, initIfAbsent - put("body", indentFunc(text, 4)) + put("body", indentFunc(text, indentLevel)) ) prepend := method(text, initIfAbsent - put("beg", indentFunc(text, 4)) + put("beg", indentFunc(text, indentLevel)) ) ) -- cgit v1.2.3-24-g4f1b