aboutsummaryrefslogtreecommitdiffstats
path: root/rebuild_perl_iurt
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2013-05-24 23:44:47 +0000
committerOlivier Blin <blino@mageia.org>2013-05-24 23:44:47 +0000
commit00ee35598494858f8d64d9a17b3fa32206fcd27f (patch)
treec73a69e4c7e7a9f109d27e27f3bcef9f73804424 /rebuild_perl_iurt
parentd8550cf4d2437e440c3059327be077df2677d456 (diff)
downloadiurt-00ee35598494858f8d64d9a17b3fa32206fcd27f.tar
iurt-00ee35598494858f8d64d9a17b3fa32206fcd27f.tar.gz
iurt-00ee35598494858f8d64d9a17b3fa32206fcd27f.tar.bz2
iurt-00ee35598494858f8d64d9a17b3fa32206fcd27f.tar.xz
iurt-00ee35598494858f8d64d9a17b3fa32206fcd27f.zip
no need to force rebuild of perl-HTML-Parser, it is not in iurt chroot anymore
Diffstat (limited to 'rebuild_perl_iurt')
-rwxr-xr-xrebuild_perl_iurt1
1 files changed, 0 insertions, 1 deletions
diff --git a/rebuild_perl_iurt b/rebuild_perl_iurt
index 32d3fef..e7b65dd 100755
--- a/rebuild_perl_iurt
+++ b/rebuild_perl_iurt
@@ -39,7 +39,6 @@ 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 perl-HTML-Parser; \
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; \
" | iurt --shell -r $distro $arch --use-old-chroot $perlchroot --chrooted-urpmi -m $media -- $repository
echo $perlchroot