summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-04-21 21:27:22 +0200
committerJustin Davis <jrcd83@gmail.com>2012-04-21 21:27:22 +0200
commit61e85350e3994da5c9c15f1bcc1098891dac38fa (patch)
treedeb24bb753e5eb09fd643ff4daa80aec55607ee2 /bin
parentd9be53b226ca60c27e7f8ee7dda2005483bc2109 (diff)
downloadgenpkg-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-xbin/modpkg9
1 files 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))
)
)