git://git.jankratochvil.net
/
massrebuild.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
runone: *.no.rpm
[massrebuild.git]
/
unpackone
1
#! /bin/bash
2
set -ex
3
repos=$1
4
shift
5
d=$1
6
shift
7
t=/tmp/unpack.$$
8
rm -rf $t
9
mkdir $t
10
cd $t
11
if ! dnf --disablerepo='*' --enablerepo=$repos download $@;then
12
echo $@ >>$d/error-dnf
13
exit 1
14
fi
15
for pkg in "$@";do
16
cd $t
17
if ! test -e $pkg.rpm;then
18
echo $pkg >>$d/error-e
19
continue
20
fi
21
rpm2archive $pkg.rpm
22
rm -f $pkg.rpm
23
cd $d
24
tar xzf $t/$pkg.rpm.tgz
25
rm -f $../pkg.rpm.tgz
26
done
27
rm -rf $t