[osm2pgrouting] 07/08: Add patch to fix spelling errors.

Bas Couwenberg sebastic at debian.org
Wed Oct 11 16:51:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository osm2pgrouting.

commit 4cff4adc07e3a606b082727c211fb7d16902eb84
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Oct 11 18:35:49 2017 +0200

    Add patch to fix spelling errors.
---
 debian/changelog                     |  1 +
 debian/patches/series                |  1 +
 debian/patches/spelling-errors.patch | 57 ++++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3286272..4f1b50d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ osm2pgrouting (2.3.0-1) UNRELEASED; urgency=medium
   * Bump Standards-Version to 4.1.1, no changes.
   * Update copyright years for pgRouting Contributors.
   * Add libpqxx-dev to build dependencies.
+  * Add patch to fix spelling errors.
 
  -- Bas Couwenberg <sebastic at debian.org>  Wed, 11 Oct 2017 18:17:37 +0200
 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..38edaa7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+spelling-errors.patch
diff --git a/debian/patches/spelling-errors.patch b/debian/patches/spelling-errors.patch
new file mode 100644
index 0000000..7642433
--- /dev/null
+++ b/debian/patches/spelling-errors.patch
@@ -0,0 +1,57 @@
+Description: Fix spelling errors.
+ * droped      -> dropped
+ * successfull -> successful
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/pgRouting/osm2pgrouting/pull/187
+
+--- a/src/database/Export2DB.cpp
++++ b/src/database/Export2DB.cpp
+@@ -167,16 +167,16 @@ void Export2DB::dropTables() const {
+         pqxx::work Xaction(db_conn);
+ 
+         Xaction.exec(ways().drop());
+-        std::cout << "TABLE: " << ways().addSchema() << " droped ... OK.\n";
++        std::cout << "TABLE: " << ways().addSchema() << " dropped ... OK.\n";
+ 
+         Xaction.exec(vertices().drop());
+-        std::cout << "TABLE: " << vertices().addSchema() << " droped ... OK.\n";
++        std::cout << "TABLE: " << vertices().addSchema() << " dropped ... OK.\n";
+ 
+         Xaction.exec(pois().drop());
+-        std::cout << "TABLE: " << pois().addSchema() << " droped ... OK.\n";
++        std::cout << "TABLE: " << pois().addSchema() << " dropped ... OK.\n";
+ 
+         Xaction.exec(configuration().drop());
+-        std::cout << "TABLE: " << configuration().addSchema() << " droped ... OK.\n";
++        std::cout << "TABLE: " << configuration().addSchema() << " dropped ... OK.\n";
+ 
+         Xaction.commit();
+     } catch (const std::exception &e) {
+@@ -188,13 +188,13 @@ void Export2DB::dropTables() const {
+         pqxx::connection db_conn(conninf);
+         pqxx::work Xaction(db_conn);
+         Xaction.exec(osm_nodes().drop());
+-        std::cout << "TABLE: " << osm_nodes().addSchema() << " droped ... OK.\n";
++        std::cout << "TABLE: " << osm_nodes().addSchema() << " dropped ... OK.\n";
+ 
+         Xaction.exec(osm_ways().drop());
+-        std::cout << "TABLE: " << osm_ways().addSchema() << " droped ... OK.\n";
++        std::cout << "TABLE: " << osm_ways().addSchema() << " dropped ... OK.\n";
+ 
+         Xaction.exec(osm_relations().drop());
+-        std::cout << "TABLE: " << osm_relations().addSchema() << " droped ... OK.\n";
++        std::cout << "TABLE: " << osm_relations().addSchema() << " dropped ... OK.\n";
+ 
+         Xaction.commit();
+     } catch (const std::exception &e) {
+--- a/src/osm_elements/osm2pgrouting.cpp
++++ b/src/osm_elements/osm2pgrouting.cpp
+@@ -133,7 +133,7 @@ int main(int argc, char* argv[]) {
+                 << endl;
+             pqxx::connection C(connection_str);
+             if (C.is_open()) {
+-                cout << "database connection successfull: " << C.dbname() << endl;
++                cout << "database connection successful: " << C.dbname() << endl;
+             } else {
+                 cout << "Can't open database" << endl;
+                 return 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osm2pgrouting.git



More information about the Pkg-grass-devel mailing list