You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
3.8 KiB
78 lines
3.8 KiB
12 years ago
|
diff -ur PortageXS-0.02.10.orig/lib/PortageXS/Core.pm PortageXS-0.02.10/lib/PortageXS/Core.pm
|
||
|
--- PortageXS-0.02.10.orig/lib/PortageXS/Core.pm 2012-12-15 19:01:20.267451741 +0100
|
||
|
+++ PortageXS-0.02.10/lib/PortageXS/Core.pm 2012-12-15 19:06:37.363938909 +0100
|
||
|
@@ -94,7 +94,7 @@
|
||
|
my $self = shift;
|
||
|
my $param = shift;
|
||
|
my @files = ();
|
||
|
- my @etcfiles = qw(/etc/make.globals /etc/make.conf);
|
||
|
+ my @etcfiles = qw(/usr/share/portage/config/make.globals /etc/portage/make.conf);
|
||
|
my @profilefiles = ();
|
||
|
my $v = '';
|
||
|
my $parent = '';
|
||
|
@@ -166,7 +166,7 @@
|
||
|
return $self->{'PORTDIR'};
|
||
|
}
|
||
|
else {
|
||
|
- $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('/etc/make.globals').$self->getFileContents('/etc/make.conf'),'PORTDIR','lastseen');
|
||
|
+ $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR','lastseen');
|
||
|
return $self->{'PORTDIR'};
|
||
|
}
|
||
|
}
|
||
|
@@ -183,7 +183,7 @@
|
||
|
my $self = shift;
|
||
|
my $forcereload = shift;
|
||
|
|
||
|
- return split(/ /,$self->getParamFromFile($self->getFileContents('/etc/make.globals').$self->getFileContents('/etc/make.conf'),'PORTDIR_OVERLAY','lastseen'));
|
||
|
+ return split(/ /,$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR_OVERLAY','lastseen'));
|
||
|
}
|
||
|
|
||
|
# Description:
|
||
|
diff -ur PortageXS-0.02.10.orig/lib/PortageXS/examples/getParamFromFile.pl PortageXS-0.02.10/lib/PortageXS/examples/getParamFromFile.pl
|
||
|
--- PortageXS-0.02.10.orig/lib/PortageXS/examples/getParamFromFile.pl 2012-12-15 19:01:20.267451741 +0100
|
||
|
+++ PortageXS-0.02.10/lib/PortageXS/examples/getParamFromFile.pl 2012-12-15 19:07:19.041822742 +0100
|
||
|
@@ -8,4 +8,5 @@
|
||
|
|
||
|
my $pxs=PortageXS->new();
|
||
|
print "CFLAGS are set to: ";
|
||
|
-print join(' ',$pxs->getParamFromFile($pxs->getFileContents('/etc/make.globals').$pxs->getFileContents('/etc/make.conf'),'CFLAGS','lastseen'))."\n";
|
||
|
+print join('
|
||
|
+',$pxs->getParamFromFile($pxs->getFileContents('/usr/share/portage/config/make.globals').$pxs->getFileContents('/etc/portage/make.conf'),'CFLAGS','lastseen'))."\n";
|
||
|
diff -ur PortageXS-0.02.10.orig/lib/PortageXS.pm PortageXS-0.02.10/lib/PortageXS.pm
|
||
|
--- PortageXS-0.02.10.orig/lib/PortageXS.pm 2012-12-15 19:01:20.283451308 +0100
|
||
|
+++ PortageXS-0.02.10/lib/PortageXS.pm 2012-12-15 19:14:38.882079616 +0100
|
||
|
@@ -89,7 +89,7 @@
|
||
|
$self->{'COLORS'}{'BLUE'} = color('bold blue');
|
||
|
$self->{'COLORS'}{'RESET'} = color('reset');
|
||
|
|
||
|
- if (lc($self->getParamFromFile($self->getFileContents('/etc/make.conf'),'NOCOLOR','lastseen')) eq 'true') {
|
||
|
+ if (lc($self->getParamFromFile($self->getFileContents('/etc/portage/make.conf'),'NOCOLOR','lastseen')) eq 'true') {
|
||
|
$self->{'COLORS'}{'YELLOW'} = '';
|
||
|
$self->{'COLORS'}{'GREEN'} = '';
|
||
|
$self->{'COLORS'}{'LIGHTGREEN'} = '';
|
||
|
diff -ur PortageXS-0.02.10.orig/t/01_Core.t PortageXS-0.02.10/t/01_Core.t
|
||
|
--- PortageXS-0.02.10.orig/t/01_Core.t 2012-12-15 19:01:20.266451768 +0100
|
||
|
+++ PortageXS-0.02.10/t/01_Core.t 2012-12-15 19:15:33.036638139 +0100
|
||
|
@@ -14,8 +14,8 @@
|
||
|
|
||
|
# - getFileContents >
|
||
|
{
|
||
|
- my $content = $pxs->getFileContents('/etc/make.conf');
|
||
|
- ok($content ne '','getFileContents of /etc/make.conf');
|
||
|
+ my $content = $pxs->getFileContents('/etc/portage/make.conf');
|
||
|
+ ok($content ne '','getFileContents of /etc/portage/make.conf');
|
||
|
}
|
||
|
|
||
|
# - searchInstalledPackage >
|
||
|
@@ -26,8 +26,8 @@
|
||
|
|
||
|
# - getParamFromFile >
|
||
|
{
|
||
|
- my $param = $pxs->getParamFromFile($pxs->getFileContents('/etc/make.conf'),'CFLAGS','lastseen');
|
||
|
- ok($param ne '','getParamFromFile /etc/make.conf - CFLAGS: '.$param);
|
||
|
+ my $param = $pxs->getParamFromFile($pxs->getFileContents('/etc/portage/make.conf'),'CFLAGS','lastseen');
|
||
|
+ ok($param ne '','getParamFromFile /etc/portage/make.conf - CFLAGS: '.$param);
|
||
|
}
|
||
|
|
||
|
# - getUseSettingsOfInstalledPackage >
|