Added detection of ppas and repositories