Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 332102 Details for
Bug 446964
dev-libs/geoip geoipupdate.sh improvement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
just remove old file when return-code of wget == 0
geoipupdate.patch (text/plain), 732 bytes, created by
Micha Glave
on 2012-12-12 10:04:53 UTC
(
hide
)
Description:
just remove old file when return-code of wget == 0
Filename:
MIME Type:
Creator:
Micha Glave
Created:
2012-12-12 10:04:53 UTC
Size:
732 bytes
patch
obsolete
>--- /usr/portage/dev-libs/geoip/files/geoipupdate-r1.sh 2012-08-30 10:05:35.000000000 +0200 >+++ /usr/sbin/geoipupdate.sh 2012-12-12 10:45:26.430450195 +0100 >@@ -17,9 +17,11 @@ > fname=$(basename $db) > > wget --no-verbose -t 3 -T 60 "${GEOIP_MIRROR}/${db}.dat.gz" -O "${TMPDIR}/${fname}.dat.gz" >- gunzip -fdc "${TMPDIR}/${fname}.dat.gz" > "${TMPDIR}/${fname}.dat" >- mv "${TMPDIR}/${fname}.dat" "${GEOIPDIR}/${fname}.dat" >- chmod 0644 "${GEOIPDIR}/${fname}.dat" >+ if [ $? -eq 0 ]; then >+ gunzip -fdc "${TMPDIR}/${fname}.dat.gz" > "${TMPDIR}/${fname}.dat" >+ mv "${TMPDIR}/${fname}.dat" "${GEOIPDIR}/${fname}.dat" >+ chmod 0644 "${GEOIPDIR}/${fname}.dat" >+ fi > done > [ -d "${TMPDIR}" ] && rm -rf $TMPDIR > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 446964
: 332102