Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bcf4abfee | |||
| 31d3bca34b |
@@ -89,8 +89,7 @@ sub add_portage_repository {
|
|||||||
or $sync_type eq "https"
|
or $sync_type eq "https"
|
||||||
or $sync_type eq "http";
|
or $sync_type eq "http";
|
||||||
$sync_type = "svn" if $repo =~ /\/svn\//;
|
$sync_type = "svn" if $repo =~ /\/svn\//;
|
||||||
my @reposplit = split( /\//, $repo );
|
my $reponame = ( split( /\//, $repo ))[-1];
|
||||||
my $reponame = $reposplit[-2] . "-" . $reposplit[-1];
|
|
||||||
system("mkdir -p /etc/portage/repos.conf/")
|
system("mkdir -p /etc/portage/repos.conf/")
|
||||||
if ( !-d "/etc/portage/repos.conf/" );
|
if ( !-d "/etc/portage/repos.conf/" );
|
||||||
|
|
||||||
@@ -100,7 +99,6 @@ echo '[$reponame]
|
|||||||
location = /usr/local/overlay/$reponame
|
location = /usr/local/overlay/$reponame
|
||||||
sync-type = $sync_type
|
sync-type = $sync_type
|
||||||
sync-uri = $repo
|
sync-uri = $repo
|
||||||
masters = gentoo
|
|
||||||
auto-sync = yes' > /etc/portage/repos.conf/$reponame.conf
|
auto-sync = yes' > /etc/portage/repos.conf/$reponame.conf
|
||||||
}; # Declaring the repo and giving priority
|
}; # Declaring the repo and giving priority
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user