diff options
-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)); |