diff options
author | Pascal Terjan <pterjan@mageia.org> | 2017-07-20 23:47:07 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2017-07-20 23:47:07 +0100 |
commit | 190c36cea7d95153a907fb4ca3bc9459d14e5b3c (patch) | |
tree | af6620de96c98e1a2ab2c6683053bfbd24d08a51 /rebuild_perl_iurt | |
parent | cd1d7e71f0c61f51bb535bcebc9ac0547d0e0bdd (diff) | |
download | iurt-190c36cea7d95153a907fb4ca3bc9459d14e5b3c.tar iurt-190c36cea7d95153a907fb4ca3bc9459d14e5b3c.tar.gz iurt-190c36cea7d95153a907fb4ca3bc9459d14e5b3c.tar.bz2 iurt-190c36cea7d95153a907fb4ca3bc9459d14e5b3c.tar.xz iurt-190c36cea7d95153a907fb4ca3bc9459d14e5b3c.zip |
mgarepo getsrpm -l is broken currently, part 2
Diffstat (limited to 'rebuild_perl_iurt')
-rwxr-xr-x | rebuild_perl_iurt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rebuild_perl_iurt b/rebuild_perl_iurt index 16f722c..e1b5387 100755 --- a/rebuild_perl_iurt +++ b/rebuild_perl_iurt @@ -47,7 +47,7 @@ rpmbuild -ba rpmbuild/SPECS/perl-URPM.spec rpmbuild -ba rpmbuild/SPECS/perl-Locale-gettext.spec sudo rpm -Uvh --force rpmbuild/RPMS/*/perl-URPM-*.rpm rpmbuild/RPMS/*/perl-Locale-gettext-*.rpm updatepkgs() { spec=$1; toupdate=; while read line; do set -- $line; name=$1; path=$2; rpm -q $name --quiet && toupdate="$toupdate $path"; done < <(rpm -q --specfile $spec --qf '%{name} rpmbuild/RPMS/%{arch}/%{name}-%{version}-%{release}.%{arch}.rpm\n' | egrep -v -- '-(debuginfo|__restore__)-'); [ -n "$toupdate" ] && sudo rpm -Uvh --force $toupdate; } -rebuild() { p=$1; mgarepo getsrpm -l -n $p; rpm -ivh @*:$p-*.src.rpm; spec=rpmbuild/SPECS/$p.spec; sudo urpmi --auto --no-verify-rpm $spec; rpmbuild -ba $spec; updatepkgs $spec; } +rebuild() { p=$1; mgarepo getsrpm -n $p; rpm -ivh @*:$p-*.src.rpm; spec=rpmbuild/SPECS/$p.spec; sudo urpmi --auto --no-verify-rpm $spec; rpmbuild -ba $spec; updatepkgs $spec; } pkgs=$(LC_ALL=C rpm -q --qf '%{SOURCERPM}\n' --whatrequires $(cat $perlapis_path) | perl -lne '/^(\S+)-[^-]+-[^-]+$/ and print $1' | uniq); for p in $pkgs; do rebuild $p; done EOF |