34 lines
717 B
Plaintext
34 lines
717 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
verbose()
|
||
|
{
|
||
|
[ -z "$GLOBAL_VERBOSE" ] ||
|
||
|
echo >&2 "HOOK: 01-genbasedir: $*"
|
||
|
}
|
||
|
|
||
|
verbose started
|
||
|
|
||
|
[ -d "$WORKDIR/ALTLinux" ] || exit 0
|
||
|
cd "$WORKDIR/ALTLinux"
|
||
|
|
||
|
comps="$(find -mindepth 1 -maxdepth 1 -type d -name 'RPMS.*' -printf '%f\n' |
|
||
|
sed 's/^RPMS\.//')"
|
||
|
|
||
|
verbose "comps=$comps"
|
||
|
|
||
|
genbasedir \
|
||
|
--topdir="$WORKDIR" \
|
||
|
--architecture="$INFO_ARCH" \
|
||
|
--no-oldhashfile \
|
||
|
--partial \
|
||
|
--bz2only \
|
||
|
--create \
|
||
|
--notautomatic=false \
|
||
|
${INFO_NAME:+--archive="$INFO_NAME"} \
|
||
|
${INFO_VERSION:+--version="$INFO_VERSION"} \
|
||
|
${INFO_ORIGIN:+--origin="$INFO_ORIGIN"} \
|
||
|
${INFO_LABEL:+--label="$INFO_LABEL"} \
|
||
|
ALTLinux $comps
|
||
|
|
||
|
verbose finished
|