summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-04-08 06:49:08 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2008-04-08 07:01:15 +0200
commitc8056b5a90ba2ef5351d9ccc3ffecee3f50211eb (patch)
tree0bf7017cfc37d6f97fa8e645eac0eeb810077f96
parent3cfa0be926efae73e0044ae7746917d8d9d6c874 (diff)
downloaddbscripts-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-xpkgdb14
-rwxr-xr-xpkgdb2-addbin12929 -> 12893 bytes
-rw-r--r--pkgdb2-add.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/pkgdb1 b/pkgdb1
index a421007..72dc3ac 100755
--- a/pkgdb1
+++ b/pkgdb1
@@ -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
diff --git a/pkgdb2-add b/pkgdb2-add
index 180e0be..be29872 100755
--- a/pkgdb2-add
+++ b/pkgdb2-add
Binary files differ
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));