From: | "Michael Januszewski (spock)" <spock@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/hddtemp/files: update-hddtemp.db |
Date: | Mon, 05 Jul 2010 13:17:25 |
Message-Id: | 20100705131720.B18342C5F4@corvid.gentoo.org |
1 | spock 10/07/05 13:17:20 |
2 | |
3 | Modified: update-hddtemp.db |
4 | Log: |
5 | Display info about the gentoo HDD database in the ebuild. Make update-hddtemp.db try to fetch the latest version of the Gentoo database from the web. Thanks to Peter Gantner for these useful suggestions (bug #324563). |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.3 app-admin/hddtemp/files/update-hddtemp.db |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/files/update-hddtemp.db?rev=1.3&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/files/update-hddtemp.db?rev=1.3&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/hddtemp/files/update-hddtemp.db?r1=1.2&r2=1.3 |
14 | |
15 | Index: update-hddtemp.db |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/app-admin/hddtemp/files/update-hddtemp.db,v |
18 | retrieving revision 1.2 |
19 | retrieving revision 1.3 |
20 | diff -u -r1.2 -r1.3 |
21 | --- update-hddtemp.db 22 Jul 2009 02:38:08 -0000 1.2 |
22 | +++ update-hddtemp.db 5 Jul 2010 13:17:20 -0000 1.3 |
23 | @@ -22,5 +22,12 @@ |
24 | |
25 | cd /usr/share/hddtemp |
26 | wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db -O hddtemp.db -q || die "Failed to download new hddtemp.db file" |
27 | + |
28 | +# Try to get the Gentoo HDD DB from WebCVS. If that fails, just use the Gentoo HDD database |
29 | +# that was installed by the ebuild. |
30 | +if wget http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/hddtemp/files/hddgentoo.db -O hddtmp.db -q; then |
31 | + mv -f hddtmp.db hddgentoo.db |
32 | +fi |
33 | + |
34 | update_db "hddgentoo.db" "hddtemp.db" |