Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-commit] r5439 - /branches/SuSE-SLE-10-Branch/backend/src/dbsource/DbAccess.cc
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Tue, 24 Apr 2007 14:33:15 -0000
  • Message-id: <20070424143315.D620D473FB@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Tue Apr 24 16:33:15 2007
New Revision: 5439

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5439&view=rev
Log:

write license for patches
(#174396)


Modified:
    branches/SuSE-SLE-10-Branch/backend/src/dbsource/DbAccess.cc

Modified: branches/SuSE-SLE-10-Branch/backend/src/dbsource/DbAccess.cc
URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-SLE-10-Branch/backend/src/dbsource/DbAccess.cc?rev=5439&r1=5438&r2=5439&view=diff
==============================================================================
--- branches/SuSE-SLE-10-Branch/backend/src/dbsource/DbAccess.cc (original)
+++ branches/SuSE-SLE-10-Branch/backend/src/dbsource/DbAccess.cc Tue Apr 24 16:33:15 2007
@@ -890,6 +890,15 @@
     }
     else if (patch != NULL) {
        sqlite3_bind_text( handle, 11, patch->category().c_str(), -1, SQLITE_STATIC );
+        license = patch->licenseToConfirm();
+        if (license.empty())
+        {
+          sqlite3_bind_text( handle, 12, NULL, -1, SQLITE_STATIC );
+        }
+        else
+        {
+          sqlite3_bind_text( handle, 12, license.c_str(), -1, SQLITE_STATIC );
+        }
     }
     else if (product != NULL) {
        sqlite3_bind_text( handle, 11, product->category().c_str(), -1, SQLITE_STATIC );

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages