Commit 3d4ba223 authored by Anton V. Boyarshinov's avatar Anton V. Boyarshinov Committed by Anton Midyukov

Rename all RPMs to canonical names before genbasedir

parent f33644ed
#!/bin/sh -efu
#!/bin/sh -eu
PREFIX=ALTLinux
cd "$WORKDIR/$PREFIX"
......@@ -9,6 +9,12 @@ COMPS="$(find -mindepth 1 -maxdepth 1 -type d -name 'RPMS.*' -printf '%f\n' |
[ -z "$GLOBAL_VERBOSE" ] || echo "** COMPS=$COMPS" >&2
[ -n "$COMPS" ] || exit 1
for comp in $COMPS; do
for f in RPMS.$comp/*rpm; do
[ "$f" = "RPMS.$comp/$(rpm -qp $f).rpm" ] || mv $f RPMS.$comp/$(rpm -qp $f).rpm
done
done
# NB: bz2 still needed for apt-cdrom add to work
genbasedir \
--topdir="$WORKDIR" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment