A slightly improved version of the patch is below. This also documents the extra options, besides --all that are available (which I only found after writing a patch to make vapt-get --all skip stopped vservers, which can be achieved with --running just as easy).