Package: googleearth-package
Version: 0.7.0
Severity: important
Tags: patch
Dear Maintainer,
This bug is untested, but fairly obvious from looking at the code. By
default curl will write to stdout, not a file as is expected. It must be
run with the "-O" option to download to a file whose name is the basename
of the url (like wget does by default). A trivial patch is included.
Glenn
-- System Information:
Debian Release: wheezy/sid
APT prefers precise-updates
APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500,
'precise-proposed'), (500, 'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 3.5.0-25-generic-tuxonice (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages googleearth-package depends on:
ii bzip2 1.0.6-1
ii curl 7.22.0-3ubuntu4
ii dpkg-dev 1.16.1.2ubuntu7
ii fakeroot 1.18.2-1
ii file 5.09-2
ii wget 1.13.4-2ubuntu1
ii x11-common 1:7.6+12ubuntu2
ii x11-utils 7.6+4ubuntu0.1
googleearth-package recommends no packages.
googleearth-package suggests no packages.
-- no debconf information
By default curl will write downloaded data to stdout. We should tell curl
to download to a file in the current directory, named as the basename of
the download url.
--- make-googleearth-package~ 2011-12-17 01:01:38.000000000 +0700
+++ make-googleearth-package 2013-03-05 04:10:02.223620475 +0700
@@ -47,9 +47,9 @@
local downloader
if [ -x $wget ]; then
- downloader=$wget
+ downloader="$wget"
elif [ -x $curl ]; then
- downloader=$curl
+ downloader="$curl -O"
else
1>&2
echo 'Either wget or curl is required to download Google Earth!'