blob: 6ebc98792b40dcfbf90a77f615c7b33bf94d5d0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
repository=$(grep repository config/settings.cfg | sed s/repository=//)
echo "Unpacking pcmemtest file in $repository"
case $(hostname) in
*.mageia.org) sudo="sudo -u bcd";;
esac
archs="i586 x86_64"
for arch in $archs; do
path=`ls -1v $repository/$arch/media/core/{release,updates}/pcmemtest*.rpm 2> /dev/null | tail -1`
if [ -z $path ] ; then
echo "ERROR: couldn't find $arch pcmemtest RPM in $repository."
exit 1
else
echo "Unpacking $arch pcmemtest file in repository."
rpm2cpio $path | cpio -idm --quiet
if [ $? -ne 0 ] ; then
echo "ERROR: failed to extract files from archive."
exit 1
fi
fi
$sudo cp -u boot/pcmemtest $repository/$arch/isolinux/pcmemtest
rm -r boot etc usr
done
|