seems like copy removes destination if source does not exist so we ended up with a buildrepo that removed all packages