I need to create a subset of an existing repository that contains certain packages. The dependencies of these packages need to be satisfied. Now, I know how to create an Apt repository from a given set of .deb files using dpkg-scanpackages, but the process doesn't satisfy dependencies. I can do it by hand, but it's tedious and there's chance something gets missed.
Is there a more automated way to satisfy dependencies in a repository?