~lubuntu-software-center-team/lubuntu-software-center/vala-port

« back to all changes in this revision

Viewing changes to db-build/dbbuild.vala

  • Committer: Stephen Smally
  • Date: 2012-07-04 17:01:15 UTC
  • Revision ID: eco.stefi@fastwebnet.it-20120704170115-to8eoxa7g4h1z0kr
Adding #9 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
                }
50
50
        foreach (string dir in app_pkg.directories) {
51
51
                GLib.debug ("Inserting %s in %s\n", app_pkg.id, dir);
 
52
                Type t_string = typeof(string);
52
53
                trs.execute_insert("INSERT INTO '%s' VALUES (:id, :name, :description, :icon);".printf (dir),
53
 
                                                           ":id", typeof (string), app_pkg.id,
54
 
                                                           ":name", typeof (string), app_pkg.name,
55
 
                                                           ":description", typeof (string), app_pkg.summary,
56
 
                                                           ":icon", typeof (string), app_pkg.icon);
 
54
                                                           ":id", t_string, app_pkg.id,
 
55
                                                           ":name", t_string, app_pkg.name,
 
56
                                                           ":description", t_string, app_pkg.summary,
 
57
                                                           ":icon", t_string, app_pkg.icon);
57
58
            }
58
59
    }
59
60
    
113
114
        
114
115
        trans = db.begin_transaction ();
115
116
        
116
 
        stdout.printf ("Collecting app-install datas...\n");
 
117
        stdout.printf ("Collecting app-install data...\n");
117
118
        
118
119
        trans.execute ("CREATE TABLE 'DIRECTORIES' (id, name, summary, icon, directory);");
119
120