diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-04-21 21:27:22 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-04-21 21:27:22 +0200 |
commit | 61e85350e3994da5c9c15f1bcc1098891dac38fa (patch) | |
tree | deb24bb753e5eb09fd643ff4daa80aec55607ee2 /bin | |
parent | d9be53b226ca60c27e7f8ee7dda2005483bc2109 (diff) | |
download | genpkg-61e85350e3994da5c9c15f1bcc1098891dac38fa.tar.gz genpkg-61e85350e3994da5c9c15f1bcc1098891dac38fa.tar.xz |
Fix modpkg typo. Don't use old fieldVals method.
Also fixes the number of space in the indent. I remember
that two is preferred.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/modpkg | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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)) ) ) |