A minimal working example of this approach: Sketch of checking catalog server for package problems · GitHub