| |
"cksum, repopath, automatic, weight, "
|
| |
"'%s' AS dbname FROM pkgjobs;";
|
| |
|
| - |
const char main_sql[] = "INSERT OR IGNORE INTO pkgjobs (pkgid, origin, name, version, comment, desc, arch, "
|
| - |
"maintainer, www, prefix, flatsize, pkgsize, "
|
| - |
"cksum, repopath, automatic) "
|
| - |
"SELECT id, origin, name, version, comment, desc, "
|
| - |
"arch, maintainer, www, prefix, flatsize, pkgsize, "
|
| - |
"cksum, path, 0 FROM '%s'.packages WHERE origin='ports-mgmt/pkg';";
|
| + |
const char main_sql[] = "INSERT OR IGNORE INTO pkgjobs (pkgid, origin, name, newversion, comment, desc, arch, "
|
| + |
"maintainer, www, prefix, newflatsize, pkgsize, "
|
| + |
"version, flatsize, cksum, repopath, automatic) "
|
| + |
"SELECT p.id, p.origin, p.name, p.version as newversion, p.comment, p.desc, "
|
| + |
"p.arch, p.maintainer, p.www, p.prefix, p.flatsize as newflatsize, p.pkgsize, "
|
| + |
"l.version as version, l.flatsize as flatsize, "
|
| + |
"p.cksum, p.path, 0 FROM '%s'.packages as p, packages as l WHERE p.origin='ports-mgmt/pkg' AND l.origin='ports-mgmt/pkg';";
|
| |
|
| |
assert(db != NULL);
|
| |
assert(db->type == PKGDB_REMOTE);
|