32
32
fields = [("baseurl", _("Base URL"), str, None,
33
_("URL where repodata/ subdirectory is found")),
34
("mirrorlist", _("Mirror list URL"), str, "",
35
_("URL which provides list of mirrors for baseurl")),
36
("metalink", _("Meta link URL"), str, "",
37
_("URL which provides metalink info for baseurl")),
38
("checksig", _("Check Signature"), bool, False,
39
_("Check GPG signature of the repomd.xml metadata index")),
40
("reposig", _("Signature URL"), str, "",
41
_("URL to signature (default: repodata/repomd.xml.asc)")),
42
("repokey", _("Public Key URL"), str, "",
43
_("URL to public key (default: repodata/repomd.xml.key)"))]
45
def detectLocalChannels(path, media):
48
if os.path.isfile(os.path.join(path, "repodata/repomd.xml")):
50
baseurl = "localmedia://"
51
baseurl += path[len(media.getMountPoint()):]
55
channel = {"baseurl": str(baseurl)}
57
infofile = os.path.join(media.getMountPoint(), ".discinfo")
58
if os.path.isfile(infofile):
60
skip = file.readline().rstrip()
61
name = file.readline().rstrip()
62
arch = file.readline().rstrip()
64
channel["name"] = "%s - %s - Media" % (name, arch)
65
channels.append(channel)
33
_("URL where repodata/ subdirectory is found"))]