yes,it is work on Debian Wheezy too, but with -w option on grep, because without -w option, grep also get packages with deinstall status, dan dpkg-repack doesn't work with deinstall status packages
...