+for rpms_dir in $(find "$@" -name RPMS) ; do
+ pushd $rpms_dir >& /dev/null
+ cd ..
+ echo "============================== Dealing with repo $(pwd)"
+ if [ -d PARTIAL-RPMS -a -n "$INCREMENTAL" ]; then
+ echo "$COMMAND - incremental mode"
+ echo "repo $rpms_dir already has a PARTIAL-RPMS - skipped"
+ popd >& /dev/null