diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-08 06:49:08 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-08 07:01:15 +0200 |
commit | c8056b5a90ba2ef5351d9ccc3ffecee3f50211eb (patch) | |
tree | 0bf7017cfc37d6f97fa8e645eac0eeb810077f96 | |
parent | 3cfa0be926efae73e0044ae7746917d8d9d6c874 (diff) | |
download | dbscripts-c8056b5a90ba2ef5351d9ccc3ffecee3f50211eb.tar.gz dbscripts-c8056b5a90ba2ef5351d9ccc3ffecee3f50211eb.tar.xz |
Fix "unknown" category handling
More minor fixes for my previous SVN commits
Now with less password
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | pkgdb1 | 4 | ||||
-rwxr-xr-x | pkgdb2-add | bin | 12929 -> 12893 bytes | |||
-rw-r--r-- | pkgdb2-add.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -15,8 +15,8 @@ getpkgname() { STAGEDIR=$(pwd) #This is our "unknown" category. We will have to do something about this later. -# It is a stop-gap -CATEGORY=25 +# It is a stop-gap. We will insert new packages in this way +CATEGORY="unknown" SVNCO=$1 REPOTAG=$2 Binary files differdiff --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)); |