Michal Jaegermann <michal@xxxxxxxxxxxx> wrote: > On Tue, Jan 23, 2007 at 05:34:51PM -0300, Horst H. von Brand wrote: > > > > Yes, I did clean up the *.rpmnew cruft (strangely, all the original and > > .rpmnew files cmp(1)ed equal, and had the same permissions). > > Especially in a multilib situtation a lots of .rpmnew files may > show up which do not differ from what is already installed. I understand that this is a bug... > I use the following script to clean that up > #!/bin/sh > [ "$1" ] || { > echo "at least one directory name is needed" >&2 > exit 1 > } > IFS='' > while [ "$1" ] ; do > cd "$1" || { echo "cannot change to $1" ; continue; } > find $1 -name '*.rpmnew' | while read -r f ; do > o="${f%.rpmnew}" > echo $f to $o > cmp "$f" "$o" && \mv "$f" "$o" > done > shift > done This assumes the directories are all absolute paths... and you don't check for possibly different owner/group/permission. > and I am checking what is left after such cleanup. Nice. I've written the equivalent a dozen times now on the command line ;-) -- Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 2654431 Universidad Tecnica Federico Santa Maria +56 32 2654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 2797513 -- fedora-test-list mailing list fedora-test-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-test-list