using subprocess to call createrpo to build the metadata files, not elegant, but it works for now