On Wednesday 17 September 2008 09:32:42 you wrote: > If nothing else works for you should have a look at [1] and pass > custom option to a given syncer. For gentoo-x86 you'd end up with > something like (assuming you have a rsync manpage at hand): > > sync_options = --rsync-option=--quiet
Thank you very much for the hint!
I added to my repositories configs:
sync_options = --rsync-option=--quiet # for rsync
sync_options = --svn-checkout-option=--quiet # for svn+http(s)
and to the paludis bashrc:
EXTRA_WGET="--quiet" # for tar+http(s)
Than I needed to remove the unnecessary stderr output from the fetchers and
utils (see attached patches - I didn't remove it from from all functions..
it's quite heavily used)
I also edited update-eix.hook and q-reinitialize.hook to be quiet (see
attached patches).
So I can now use this very ugly cronjob to sync:
25 */23 */2 * * if on_ac_power; then paludis --no-color --sync |
egrep -v '^((Sync (layman|(installed-)?virtuals|gentoo|keks-overlay|local|
paludis-extras|sunrise|installed(-unpackaged)?)( skipped| completed||)|sync
layman> (wget|>>>|tar).*||Regenerating cache for (layman|virtuals|gentoo|
keks-overlay|local|paludis-extras|sunrise)\.\.\.| (.){13} (No unread news
items found|(Done r|R)egenerating cache for installable repositories(\.\.
\.)?|(C|Done c)leaning write cache for ebuild format repositories(\.\.
\.)?))$)'
I think it would be very nice if the --sync option from paludis supported some
sort of --quiet by default (same goes for the paludis-hooks-q-reinitialize
and paludis-hooks-update-eix). Maybe someone wants to implement it..
Again thank you very much for the hint!
Cheers,
Robert
--
/"\ ASCII Ribbon Campaign for - plain text emails
\ / ______________________ - attachments complying with standards
X | signed & encrypted | - replies below quoted text
/ \ | emails preferred | - lines shorter than 80 characters
diff -urN fetchers.orig/doftp fetchers/doftp
--- fetchers.orig/doftp 2008-09-16 00:29:45.000000000 +0200
+++ fetchers/doftp 2008-09-17 13:04:18.000000000 +0200
@@ -38,7 +38,7 @@
fi
fi
- echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}" 1>&2
+ echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}"
if ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}" ; then
echo mv -f "${2}".-PARTIAL- "${2}"
mv -f "${2}".-PARTIAL- "${2}"
@@ -49,7 +49,7 @@
fi
else
- echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}" 1>&2
+ echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}"
if ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}" ; then
exit 0
else
diff -urN fetchers.orig/dohttp fetchers/dohttp
--- fetchers.orig/dohttp 2008-09-16 00:29:45.000000000 +0200
+++ fetchers/dohttp 2008-09-17 13:04:40.000000000 +0200
@@ -38,7 +38,7 @@
fi
fi
- echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}" 1>&2
+ echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}"
if ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}" ; then
echo mv -f "${2}".-PARTIAL- "${2}"
mv -f "${2}".-PARTIAL- "${2}"
@@ -49,7 +49,7 @@
fi
else
- echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}" 1>&2
+ echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}"
if ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}" ; then
exit 0
else
diff -urN fetchers.orig/dohttps fetchers/dohttps
--- fetchers.orig/dohttps 2008-09-16 00:29:45.000000000 +0200
+++ fetchers/dohttps 2008-09-17 13:04:54.000000000 +0200
@@ -38,7 +38,7 @@
fi
fi
- echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}" 1>&2
+ echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}"
if ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 --continue -O "${2}".-PARTIAL- "${1}" ; then
echo mv -f "${2}".-PARTIAL- "${2}"
mv -f "${2}".-PARTIAL- "${2}"
@@ -49,7 +49,7 @@
fi
else
- echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}" 1>&2
+ echo ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}"
if ${WGET_WRAPPER} ${LOCAL_WGET:-wget} ${EXTRA_WGET} -T 30 -t 1 -O "${2}" "${1}" ; then
exit 0
else
diff -urN utils.orig/unpack utils/unpack
--- utils.orig/unpack 2008-09-16 00:29:46.000000000 +0200
+++ utils/unpack 2008-09-17 12:59:18.000000000 +0200
@@ -54,48 +54,48 @@
case "${x}" in
*.tar)
- echo tar xf "${1}" --no-same-owner "[EMAIL PROTECTED]" 1>&2
+ echo tar xf "${1}" --no-same-owner "[EMAIL PROTECTED]"
tar xf "${1}" --no-same-owner "[EMAIL PROTECTED]" || die "Couldn't unpack ${1}"
;;
*.tar.gz|*.tgz|*.tar.Z)
- echo tar zxf "${1}" --no-same-owner "[EMAIL PROTECTED]" 1>&2
+ echo tar zxf "${1}" --no-same-owner "[EMAIL PROTECTED]"
tar zxf "${1}" --no-same-owner "[EMAIL PROTECTED]" || die "Couldn't unpack ${1}"
;;
*.tar.bz2|*.tbz2|*.tbz)
- echo tar jxf "${1}" --no-same-owner "[EMAIL PROTECTED]" ${UNPACKONLY} 1>&2
+ echo tar jxf "${1}" --no-same-owner "[EMAIL PROTECTED]" ${UNPACKONLY}
tar jxf "${1}" --no-same-owner "[EMAIL PROTECTED]" ${UNPACKONLY} || die "Couldn't unpack ${1}"
;;
*.zip|*.ZIP|*.jar)
- echo unzip -qo "${1}" 1>&2
+ echo unzip -qo "${1}"
unzip -qo "${1}" || die "Couldn't unpack ${1}"
;;
*.gz|*.Z|*.z)
- echo gzip -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" ) 1>&2
+ echo gzip -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" )
gzip -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" ) || die "Couldn't unpack ${1}"
;;
*.bz2)
- echo bzip2 -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" ) 1>&2
+ echo bzip2 -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" )
bzip2 -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" ) || die "Couldn't unpack ${1}"
;;
*.rar|*.RAR)
- echo unrar x -idq "${1}" 1>&2
+ echo unrar x -idq "${1}"
unrar x -idq "${1}" || die "Couldn't unpack ${1}"
;;
*.LHa|*.LHA|*.lha|*.lzh)
- echo lha xqf "${1}" 1>&2
+ echo lha xqf "${1}"
lha xqf "${1}" || die "Couldn't unpack ${1}"
;;
*.a|*.deb)
- echo ar x "${1}" 1>&2
- ar x "${1}" 1>&2
+ echo ar x "${1}"
+ ar x "${1}"
;;
*.tar.lzma)
@@ -105,7 +105,7 @@
;;
*.lzma)
- echo lzma -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" ) 1>&2
+ echo lzma -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" )
lzma -dc "${1}" > ${UNPACKTODIR}/$(basename "${1%.*}" ) || die "Couldn't unpack ${1}"
;;
diff -urN utils.orig/emake utils/emake
--- utils.orig/emake 2008-09-16 00:29:46.000000000 +0200
+++ utils/emake 2008-09-17 14:33:04.000000000 +0200
@@ -19,7 +19,7 @@
source "${PALUDIS_EBUILD_DIR}"/die_functions.bash
-echo ${EMAKE_WRAPPER} ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@" 1>&2
+echo ${EMAKE_WRAPPER} ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@"
${EMAKE_WRAPPER} ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@"
ret=$?
[[ 0 != $ret ]] && paludis_die_or_error "emake returned error $ret"
--- q-reinitialize.hook.orig 2008-03-25 15:56:15.000000000 +0100
+++ q-reinitialize.hook 2008-09-17 12:32:28.000000000 +0200
@@ -7,11 +7,8 @@
[[ ! -x /usr/bin/q ]] && einfo "$0: Portage-utils doesn't seem installed => skipping this hook"
- echo
- /usr/bin/q --reinitialize
- echo
- /usr/bin/q --metacache
- echo
+ /usr/bin/q --quiet --reinitialize
+ /usr/bin/q --quiet --metacache
}
hook_auto_names() {
--- /tmp/update-eix.hook 2008-03-26 22:35:34.000000000 +0100
+++ /usr/share/paludis/hooks/common/update-eix.hook 2008-09-17 12:33:05.000000000 +0200
@@ -60,7 +60,7 @@
collect_options() {
echo
- ebegin "Collecting repository configuration"
+ #ebegin "Collecting repository configuration"
# clear options
ClearUpdateEixArgs
@@ -107,10 +107,9 @@
hook_run_sync_all_post() {
collect_options
# Update eix cache and diff it against the old
- ebegin "Updating the eix database"
+ #ebegin "Updating the eix database"
CallUpdateEix || die "update-eix failed"
#update-eix -q --output "${EIX_CACHE}" ${opts} &>/dev/null || die "update-eix failed"
- echo
if [[ -n ${DIFF_DB} ]]; then
diff-eix -F "${EIX_CACHE_OLD}" "${EIX_CACHE}" || die "diff-eix failed"
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ paludis-user mailing list [email protected] http://lists.pioto.org/mailman/listinfo/paludis-user
