aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2013-05-24 23:40:37 +0000
committerOlivier Blin <blino@mageia.org>2013-05-24 23:40:37 +0000
commitd8550cf4d2437e440c3059327be077df2677d456 (patch)
tree463a999b54d1020fc9f9eb6a5015d1e7a9b67252
parent2a06b356a740cd6a7217a8c82c65ef25edcc8a04 (diff)
downloadiurt-d8550cf4d2437e440c3059327be077df2677d456.tar
iurt-d8550cf4d2437e440c3059327be077df2677d456.tar.gz
iurt-d8550cf4d2437e440c3059327be077df2677d456.tar.bz2
iurt-d8550cf4d2437e440c3059327be077df2677d456.tar.xz
iurt-d8550cf4d2437e440c3059327be077df2677d456.zip
debug packages are now named with debuginfo suffix
-rwxr-xr-xrebuild_perl_iurt4
1 files changed, 2 insertions, 2 deletions
diff --git a/rebuild_perl_iurt b/rebuild_perl_iurt
index c8137db..32d3fef 100755
--- a/rebuild_perl_iurt
+++ b/rebuild_perl_iurt
@@ -31,13 +31,13 @@ for p in perl perl-List-MoreUtils perl-URPM perl-Locale-gettext; do mgarepo gets
rpm -ivh *.src.rpm; \
sudo urpmi --auto --no-verify-rpm rpmbuild/SPECS/*.spec; \
rpmbuild -ba rpmbuild/SPECS/perl.spec; \
-sudo rpm -Uvh --nodeps --force \$(ls rpmbuild/RPMS/*/perl-*.rpm | grep -v debug); \
+sudo rpm -Uvh --nodeps --force \$(ls rpmbuild/RPMS/*/perl-*.rpm | grep -v debuginfo); \
PERL5LIB=\$(rpm -ql perl-List-MoreUtils | perl -ne 's!/List/MoreUtils.pm!! && print') LIST_MOREUTILS_PP=1 rpmbuild -ba rpmbuild/SPECS/perl-List-MoreUtils.spec; \
sudo rpm -Uvh --force rpmbuild/RPMS/*/perl-List-MoreUtils-*.rpm; \
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; }; \
+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; \