Deal with Debian-native packages correctly when calculating and
[invirt/packages/invirt-dev.git] / invirt-ood-packages
1 #!/bin/bash
2
3 svn="$(invirt-getconf svn.uri)"
4
5 for package in $(svn ls "$svn/trunk/packages"); do
6     package=${package%%/}
7     version=$(svn cat "$svn/trunk/packages/$package/debian/changelog" | dpkg-parsechangelog -l- | perl '-F:\s+' -lane 'print $F[1] if /^Version/')
8     
9     if ! svn ls "$svn/package_tags/$package/$version" >/dev/null 2>&1; then
10         echo $package
11     fi
12 done