I have the following example:
import zypp
def main():
myRepoInfo = zypp.RepoInfo()
myRepoInfo.addBaseUrl(zypp.Url("file:///mounts/mirror/SuSE/ftp.opensuse.org/srv/ftp/pub/opensuse/debug/update/11.1/"))
myRepoInfo.setAlias("default")
myRepoInfo.setName("default")
myRepoInfo.setEnabled(True)
myRepoInfo.setType(zypp.RepoType.RPMMD) # for now
myRepoInfo.setGpgCheck(False)
for url in myRepoInfo.baseUrls():
print url
if __name__ == "__main__":
main()
When I let it run I get the following error:
$ python baseurls.py
swig/python detected a memory leak of type 'std::set< zypp::Url,std::less