diff options
author | Olivier Blin <blino@mageia.org> | 2013-05-24 23:36:46 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2013-05-24 23:36:46 +0000 |
commit | 2a06b356a740cd6a7217a8c82c65ef25edcc8a04 (patch) | |
tree | c7c4c0f4d93768728c421b01f6a9c470ff0db3d4 | |
parent | d416e6e3d1fe03c6bab7b78ceb010cc8567e3198 (diff) | |
download | iurt-2a06b356a740cd6a7217a8c82c65ef25edcc8a04.tar iurt-2a06b356a740cd6a7217a8c82c65ef25edcc8a04.tar.gz iurt-2a06b356a740cd6a7217a8c82c65ef25edcc8a04.tar.bz2 iurt-2a06b356a740cd6a7217a8c82c65ef25edcc8a04.tar.xz iurt-2a06b356a740cd6a7217a8c82c65ef25edcc8a04.zip |
fix src.rpm glob, @*- should be @*:
-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 d36ea80..c8137db 100755 --- a/rebuild_perl_iurt +++ b/rebuild_perl_iurt @@ -38,7 +38,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 -- '-(debug|__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 -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 |