You need to sign in or sign up before continuing.
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 PREFIX=ALTLinux
cd "$WORKDIR/$PREFIX" cd "$WORKDIR/$PREFIX"
...@@ -9,6 +9,12 @@ COMPS="$(find -mindepth 1 -maxdepth 1 -type d -name 'RPMS.*' -printf '%f\n' | ...@@ -9,6 +9,12 @@ COMPS="$(find -mindepth 1 -maxdepth 1 -type d -name 'RPMS.*' -printf '%f\n' |
[ -z "$GLOBAL_VERBOSE" ] || echo "** COMPS=$COMPS" >&2 [ -z "$GLOBAL_VERBOSE" ] || echo "** COMPS=$COMPS" >&2
[ -n "$COMPS" ] || exit 1 [ -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 # NB: bz2 still needed for apt-cdrom add to work
genbasedir \ genbasedir \
--topdir="$WORKDIR" \ --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