diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-08 00:49:08 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-08 01:01:15 -0400 |
commit | c8056b5a90ba2ef5351d9ccc3ffecee3f50211eb (patch) | |
tree | 0bf7017cfc37d6f97fa8e645eac0eeb810077f96 /pkgdb2-add.c | |
parent | 3cfa0be926efae73e0044ae7746917d8d9d6c874 (diff) |
Fix "unknown" category handling
More minor fixes for my previous SVN commits
Now with less password
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'pkgdb2-add.c')
-rw-r--r-- | pkgdb2-add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgdb2-add.c b/pkgdb2-add.c index 32f2d83..489074c 100644 --- a/pkgdb2-add.c +++ b/pkgdb2-add.c @@ -222,7 +222,7 @@ int main(int argc, char **argv) "SELECT id FROM categories WHERE category='%s'", cat); result = doquery(&db, query); if(mysql_num_rows(result) == 0) { - fprintf(stderr, "pkgdb2-add: no db category found for '%s'\n", cat); + catid = 25; /* snprintf(query, sizeof(query), "INSERT INTO categories (id,category) " " VALUES (NULL,'%s')", addslashes(cat)); |