Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/splat/files: splat-0.08-prefix.patch
Date: Thu, 27 Dec 2012 19:31:15
Message-Id: 20121227193104.6232D2171D@flycatcher.gentoo.org
1 ottxor 12/12/27 19:31:04
2
3 Added: splat-0.08-prefix.patch
4 Log:
5 added prefix support
6
7 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key C2000586)
8
9 Revision Changes Path
10 1.1 app-portage/splat/files/splat-0.08-prefix.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/splat/files/splat-0.08-prefix.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/splat/files/splat-0.08-prefix.patch?rev=1.1&content-type=text/plain
14
15 Index: splat-0.08-prefix.patch
16 ===================================================================
17 --- splat.pl
18 +++ splat.pl
19 @@ -1,4 +1,4 @@
20 -#!/usr/bin/perl -w
21 +#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl -w
22
23 # Copyright 2003; Shaun Guth <l8nite@××××××.net>
24 #
25 @@ -65,13 +65,13 @@
26 return unless /\.ebuild$/;
27
28 my $basedir = dirname($File::Find::name);
29 - $basedir =~ s/^\/var\/db\/pkg//;
30 + $basedir =~ s|^@GENTOO_PORTAGE_EPREFIX@/var/db/pkg||;
31 my $package = join('/',(splitdir($basedir))[1,2]);
32
33 $INSTALLED{$package} = 1;
34
35 }, 'no_chdir' => 1, },
36 - '/var/db/pkg',
37 + '@GENTOO_PORTAGE_EPREFIX@/var/db/pkg',
38 );
39
40 &parse_command_line();
41 @@ -320,7 +320,7 @@
42 # no logfile defined? Let's check make.conf
43 if( !defined($logfile) || $logfile eq "" )
44 {
45 - $logfile = '/var/log/emerge.log';
46 + $logfile = '@GENTOO_PORTAGE_EPREFIX@/var/log/emerge.log';
47
48 if( $OPT->{'verbose'} ) {
49 warn "*** No log file specified.\n";