diff options
author | Nicolás Reynolds <fauno@parabola.nu> | 2013-01-16 14:55:14 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@parabola.nu> | 2013-01-16 14:55:14 -0300 |
commit | 937c8656ecd59d9800c7d6dfb23a816195320bdd (patch) | |
tree | 98a52492045c0b59661676ee6289a9419b8a2072 /libre/dpkg/compare | |
parent | 4446f2330756577653fd2ebbaf1bef6950720fde (diff) | |
parent | f62179b3bfcd584fa856098cbddb39614b9f8a60 (diff) | |
download | abslibre-937c8656ecd59d9800c7d6dfb23a816195320bdd.tar.gz abslibre-937c8656ecd59d9800c7d6dfb23a816195320bdd.tar.bz2 abslibre-937c8656ecd59d9800c7d6dfb23a816195320bdd.zip |
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'libre/dpkg/compare')
-rwxr-xr-x | libre/dpkg/compare | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libre/dpkg/compare b/libre/dpkg/compare new file mode 100755 index 000000000..4556440a5 --- /dev/null +++ b/libre/dpkg/compare @@ -0,0 +1,26 @@ +#!/bin/bash +# compare the packages extracted in pkg/ to the packages from debian + +_check() { + local pacpkg=$1 + local debpkg=$2 + + libremessages msg "dpkg:$debpkg -> pacman:$pacpkg" + + make -f compare.mk tmp/$pacpkg.pacman.filelist tmp/$debpkg.debian.filelist &>/dev/null + + echo -e 'pacman\tdpkg' + comm -3 \ + <(sed -e 's|\.gz$||' tmp/$pacpkg.pacman.filelist|sort) \ + <(sed -e 's|\.gz$||' -e '/^usr\/share\/man\/..\/man.\//d' -e 's|usr/share/perl5/|&vendor_perl/|' -e "s|$debpkg|$pacpkg|g" tmp/$debpkg.debian.filelist|sort) +} + +mkdir -p tmp + +_check dpkg dpkg +_check dpkg-devtools dpkg-dev +_check dselect dselect +_check libdpkg libdpkg-dev +_check perl-dpkg libdpkg-perl + +rm -rf tmp |