67
67
def seed_sources(self, project):
68
68
if self.config["LOCAL_SEEDS"]:
69
69
return [self.config["LOCAL_SEEDS"]]
71
pattern = "http://bazaar.launchpad.net/~%s/ubuntu-seeds/"
71
bzrpattern = "http://bazaar.launchpad.net/~%s/ubuntu-seeds/"
72
gitpattern = "https://git.launchpad.net/~%s/ubuntu-seeds/+git/"
72
73
series = self.config["DIST"]
73
sources = [pattern % "ubuntu-core-dev"]
74
sources = [bzrpattern % "ubuntu-core-dev"]
74
75
if project in ("kubuntu", "kubuntu-active", "kubuntu-plasma5"):
75
76
if series >= "oneiric":
76
sources.insert(0, pattern % "kubuntu-dev")
77
sources.insert(0, bzrpattern % "kubuntu-dev")
77
78
elif project == "ubuntustudio":
78
sources.insert(0, pattern % "ubuntustudio-dev")
79
sources.insert(0, bzrpattern % "ubuntustudio-dev")
79
80
elif project == "mythbuntu":
80
sources.insert(0, pattern % "mythbuntu-dev")
81
sources.insert(0, bzrpattern % "mythbuntu-dev")
81
82
elif project in ("xubuntu", "xubuntu-base"):
82
83
if series >= "intrepid":
83
sources.insert(0, pattern % "xubuntu-dev")
84
elif project == "lubuntu":
85
sources.insert(0, pattern % "lubuntu-dev")
84
sources.insert(0, bzrpattern % "xubuntu-dev")
85
elif project in ("lubuntu", "lubuntu-next"):
86
sources.insert(0, gitpattern % "lubuntu-dev")
86
87
elif project == "ubuntu-gnome":
87
sources.insert(0, pattern % "ubuntu-gnome-dev")
88
sources.insert(0, bzrpattern % "ubuntu-gnome-dev")
89
elif project == "ubuntu-budgie":
90
sources.insert(0, bzrpattern % "ubuntubudgie-dev")
88
91
elif project == "ubuntu-mate":
89
sources.insert(0, pattern % "ubuntu-mate-dev")
92
sources.insert(0, bzrpattern % "ubuntu-mate-dev")
90
93
elif project == "ubuntu-moblin-remix":
91
sources.insert(0, pattern % "moblin")
94
sources.insert(0, bzrpattern % "moblin")
92
95
elif project == "ubuntukylin":
93
96
if series >= "utopic":
94
sources.insert(0, pattern % "ubuntukylin-members")
97
sources.insert(0, bzrpattern % "ubuntukylin-members")
97
100
return ["http://people.canonical.com/~ubuntu-archive/seeds/"]
101
104
if self.config["LOCAL_SEEDS"]:
102
105
# Local changes may well not be committed.
105
return self.prefer_bzr
108
return self.prefer_vcs
107
110
def make_index(self, project, arch, rel_target, rel_paths):
108
111
target = os.path.join(self.output_dir(project), rel_target)
196
201
"--components", "main",
200
command.append("--bzr")
205
command.append("--vcs=auto")
206
if self.config.image_type == "source":
207
command.append("--always-follow-build-depends")
201
208
proxy_check_call(
202
self.config, "germinate", command, cwd=arch_output_dir)
209
self.config, "germinate", command, cwd=arch_output_dir,
210
env=dict(os.environ, GIT_TERMINAL_PROMPT="0"))
203
211
output_structure = os.path.join(self.output_dir(project), "STRUCTURE")
205
213
os.path.join(arch_output_dir, "structure"), output_structure)