-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Maintainer: Sven Geggus <[email protected]> | |
Build-Depends: debhelper (>= 8.0.0), libicu-dev, | ||
postgresql-server-dev-all, | ||
postgresql-server-dev-9.4 | postgresql-server-dev-9.5 | postgresql-server-dev-10 | postgresql-server-dev-11, | ||
wget, libkakasi2-dev, libutf8proc-dev, pandoc | ||
curl, libkakasi2-dev, libutf8proc-dev, pandoc | ||
Standards-Version: 3.9.2 | ||
|
||
Package: postgresql-11-osml10n | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Maintainer: Sven Geggus <[email protected]> | |
Build-Depends: debhelper (>= 8.0.0), libicu-dev, | ||
postgresql-server-dev-all, | ||
postgresql-server-dev-9.4 | postgresql-server-dev-9.5 | postgresql-server-dev-10 | postgresql-server-dev-11, | ||
wget, libkakasi2-dev, libutf8proc-dev, pandoc | ||
curl, libkakasi2-dev, libutf8proc-dev, pandoc | ||
Standards-Version: 3.9.2 | ||
|
||
Package: postgresql-PGVERSION-osml10n | ||
|
2 comments
on commit 057f3db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK yout code will capture the exit status of the gzip rather than the one from curl. My intension was to check for the existence of country_osm_grid.sql (as download may not be possible at all) rather than checking if the download succeeded. This worked at some stage but broke after I added the command pipeline which will always produce the SQL file.
Thus I just replaced -f by -s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK yout code will capture the exit status of the gzip rather than the one from curl
That was intended. gzip will fail for broken downloads and corrupt archives.
But yes, your solution achieves the same thing 👍
The download might still fail (server down, corporate proxy, etc) and generate an empty
country_osm_grid.sql
fileSuggestion: