1 |
vapier 08/02/04 17:39:20 |
2 |
|
3 |
Modified: slocate-3.1-r1.ebuild ChangeLog |
4 |
Log: |
5 |
When upgrading from slocate-2.x, delete the slocate db as they are incompatible. |
6 |
(Portage version: 2.1.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.4 sys-apps/slocate/slocate-3.1-r1.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/slocate/slocate-3.1-r1.ebuild?rev=1.4&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/slocate/slocate-3.1-r1.ebuild?rev=1.4&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/slocate/slocate-3.1-r1.ebuild?r1=1.3&r2=1.4 |
14 |
|
15 |
Index: slocate-3.1-r1.ebuild |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/slocate/slocate-3.1-r1.ebuild,v |
18 |
retrieving revision 1.3 |
19 |
retrieving revision 1.4 |
20 |
diff -u -r1.3 -r1.4 |
21 |
--- slocate-3.1-r1.ebuild 2 Dec 2007 20:03:13 -0000 1.3 |
22 |
+++ slocate-3.1-r1.ebuild 4 Feb 2008 17:39:19 -0000 1.4 |
23 |
@@ -1,6 +1,6 @@ |
24 |
-# Copyright 1999-2007 Gentoo Foundation |
25 |
+# Copyright 1999-2008 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/slocate-3.1-r1.ebuild,v 1.3 2007/12/02 20:03:13 vapier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/slocate-3.1-r1.ebuild,v 1.4 2008/02/04 17:39:19 vapier Exp $ |
29 |
|
30 |
inherit flag-o-matic eutils |
31 |
|
32 |
@@ -67,6 +67,14 @@ |
33 |
fperms 0750 /var/lib/slocate |
34 |
} |
35 |
|
36 |
+pkg_preinst() { |
37 |
+ if has_version '=sys-apps/slocate-2*' ; then |
38 |
+ rm -f "${ROOT}"/var/lib/slocate/slocate.db |
39 |
+ ewarn "The slocate database created by slocate-2.x is incompatible" |
40 |
+ ewarn "with slocate-3.x. Make sure you run updatedb!" |
41 |
+ fi |
42 |
+} |
43 |
+ |
44 |
pkg_postinst() { |
45 |
if [[ -f ${ROOT}/etc/cron.daily/slocate.cron ]]; then |
46 |
ewarn "If you merged slocate-2.7.ebuild, please remove" |
47 |
@@ -74,9 +82,4 @@ |
48 |
ewarn "from the filename" |
49 |
echo |
50 |
fi |
51 |
- einfo "Note that the /etc/updatedb.conf file is generic" |
52 |
- einfo "Please customize it to your system requirements" |
53 |
- echo |
54 |
- ewarn "The slocate database created by slocate-2.x is incompatible" |
55 |
- ewarn "with slocate-3.x. Make sure you run updatedb!" |
56 |
} |
57 |
|
58 |
|
59 |
|
60 |
1.75 sys-apps/slocate/ChangeLog |
61 |
|
62 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/slocate/ChangeLog?rev=1.75&view=markup |
63 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/slocate/ChangeLog?rev=1.75&content-type=text/plain |
64 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/slocate/ChangeLog?r1=1.74&r2=1.75 |
65 |
|
66 |
Index: ChangeLog |
67 |
=================================================================== |
68 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/slocate/ChangeLog,v |
69 |
retrieving revision 1.74 |
70 |
retrieving revision 1.75 |
71 |
diff -u -r1.74 -r1.75 |
72 |
--- ChangeLog 2 Dec 2007 20:03:13 -0000 1.74 |
73 |
+++ ChangeLog 4 Feb 2008 17:39:19 -0000 1.75 |
74 |
@@ -1,6 +1,10 @@ |
75 |
# ChangeLog for sys-apps/slocate |
76 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
77 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/ChangeLog,v 1.74 2007/12/02 20:03:13 vapier Exp $ |
78 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
79 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/slocate/ChangeLog,v 1.75 2008/02/04 17:39:19 vapier Exp $ |
80 |
+ |
81 |
+ 04 Feb 2008; Mike Frysinger <vapier@g.o> slocate-3.1-r1.ebuild: |
82 |
+ When upgrading from slocate-2.x, delete the slocate db as they are |
83 |
+ incompatible. |
84 |
|
85 |
02 Dec 2007; Mike Frysinger <vapier@g.o> slocate-2.7-r8.ebuild, |
86 |
slocate-3.1-r1.ebuild: |
87 |
|
88 |
|
89 |
|
90 |
-- |
91 |
gentoo-commits@l.g.o mailing list |