--- hsh-sh-rebuild-functions.orig 2007-05-21 16:46:53 +0300 +++ hsh-sh-rebuild-functions 2007-05-22 16:37:01 +0300 @@ -234,9 +234,9 @@ EOF target="$(quote_arg "${target:-$def_target}")" /.host/rebuild * -find /usr/src/RPM/SRPMS/ -mindepth 1 -maxdepth 1 -type f -name \*.src.rpm -print0 | - xargs -r0 mv -f $verbose --target-directory=/.out/ -- -find /usr/src/RPM/RPMS/ -mindepth 2 -maxdepth 2 -type f -name \*.rpm -print0 | +find \$(rpm --eval=%_srcrpmdir)/ -mindepth 1 -maxdepth 1 -type f -name \*.src.rpm -print0 | + xargs -r0 mv -f $verbose --target-directory=/.out/ -- +find \$(rpm --eval=%_rpmdir)/ -mindepth 2 -maxdepth 2 -type f -name \*.rpm -print0 | xargs -r0 mv -f $verbose --target-directory=/.out/ -- __EOF__