contrib/openrc/init.d/package-cache: Add PC_OPTS
authorW. Trevor King <wking@tremily.us>
Fri, 21 Feb 2014 02:29:58 +0000 (18:29 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 21 Feb 2014 02:29:58 +0000 (18:29 -0800)
You can use this to tweak the logging:

  $ cat /etc/conf.d/package-cache
  PC_OPTS="-vvv"

contrib/openrc/init.d/package-cache

index 49189ce113dfbc66defcd7639971413e68b5b54c..d8a9a97fd333fc01f220ef82f64c4f9f46628f39 100755 (executable)
@@ -36,7 +36,8 @@ start() {
                --host "${HOST}" \
                --port "${PORT}" \
                "${SOURCE_OPTS[@]}" \
-               --cache "${CACHE_DIR}"
+               --cache "${CACHE_DIR}" \
+               ${PC_OPTS:+${PC_OPTS}}
        eend $?
 }