summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));