host_install_postboot_complete
target_core_dump_setup
sha256file host_shared_mark_ready
+ gitcache_setup
);
%EXPORT_TAGS = ( );
$sharetype);
}
+sub gitcache_setup ($) {
+ my ($ho) = @_;
+ my $proxy = $c{GitCacheProxy};
+ return unless $proxy;
+
+ logm("setting up git cacheing proxy $proxy");
+
+ my $gitcfg = '';
+ foreach my $urlprefix (qw(git:// http:// https://)) {
+ $gitcfg .= <<END
+[url "${proxy}$urlprefix"]
+ insteadOf = $urlprefix
+[url "${proxy}$urlprefix"]
+ insteadOf = ${proxy}$urlprefix
+END
+ }
+ target_putfilecontents_stash($ho,30,$gitcfg,"/home/osstest/.gitconfig",
+ 'home-osstest-gitconfig');
+}
+
1;
}
}
-sub gitcache_setup () {
- my $proxy = $c{GitCacheProxy};
- return unless $proxy;
-
- logm("setting up git cacheing proxy $proxy");
-
- my $gitcfg = '';
- foreach my $urlprefix (qw(git:// http:// https://)) {
- $gitcfg .= <<END
-[url "${proxy}$urlprefix"]
- insteadOf = $urlprefix
-[url "${proxy}$urlprefix"]
- insteadOf = ${proxy}$urlprefix
-END
- }
- target_putfilecontents_stash($ho,30,$gitcfg,"/home/osstest/.gitconfig",
- 'home-osstest-gitconfig');
-}
-
if (!$ho->{Flags}{'no-reinstall'}) {
determine_vg_lv();
lvcreate();
lvextend_stage2();
replace_home();
ccache_setup();
- gitcache_setup();
+ gitcache_setup($ho);
}
host_shared_mark_ready($ho, "build-".$ho->{Suite}."-".$r{arch});