[Midnightbsd-cvs] mports [16859] trunk/Tools/magus/bless/magus-bless.cxx: write it as we go
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Sep 6 23:16:16 EDT 2014
Revision: 16859
http://svnweb.midnightbsd.org/mports/?rev=16859
Author: laffer1
Date: 2014-09-06 23:16:16 -0400 (Sat, 06 Sep 2014)
Log Message:
-----------
write it as we go
Modified Paths:
--------------
trunk/Tools/magus/bless/magus-bless.cxx
Modified: trunk/Tools/magus/bless/magus-bless.cxx
===================================================================
--- trunk/Tools/magus/bless/magus-bless.cxx 2014-09-07 03:12:56 UTC (rev 16858)
+++ trunk/Tools/magus/bless/magus-bless.cxx 2014-09-07 03:16:16 UTC (rev 16859)
@@ -158,8 +158,8 @@
}
printf("Load the mirrors list\n");
- nontransaction Q(C);
- result R2(Q.exec("SELECT country, url FROM mirrors order by country"));
+ nontransaction MC(C);
+ result R2(MC.exec("SELECT country, url FROM mirrors order by country"));
if (!R2.empty())
{
for (result::const_iterator c = R2.begin(); c != R2.end(); ++c)
@@ -171,7 +171,9 @@
errx(1, "Could not prepare statement");
}
string country = c[0].as(string());
+ cout << country << endl;
string url = c[1].as(string());
+ cout << url << endl;
sqlite3_bind_text(stmt, 1, country.c_str(), country.length(), SQLITE_TRANSIENT);
sqlite3_bind_text(stmt, 2, url.c_str(), url.length(), SQLITE_TRANSIENT);
More information about the Midnightbsd-cvs
mailing list