#!/bin/bash

svn="$(invirt-getconf svn.uri)"

for package in $(svn ls "$svn/trunk/packages"); do
    package=${package%%/}
    version=$(svn cat "$svn/trunk/packages/$package/debian/changelog" | dpkg-parsechangelog -l- | perl '-F:\s+' -lane 'print $F[1] if /^Version/')
    
    if ! svn ls "$svn/package_tags/$package/$version" >/dev/null 2>&1; then
        echo $package
    fi
done
