fixed minor bugs

This commit is contained in:
pjmattal 2005-02-23 05:31:39 +00:00
parent eb000511da
commit 256f0ff0cf
3 changed files with 9 additions and 2 deletions

View file

@ -3,6 +3,8 @@ This is the list of things we need to get done by 2/15 in order to make a
TIER 1 (critical) TIER 1 (critical)
* a package should be made of tupkg client tool * a package should be made of tupkg client tool
* tupkgupdate needs a way to find out what the repo is called; possibly a
file in the top level dir of the cvs repo called "NAME"?
TIER 2 (pretty important) TIER 2 (pretty important)
* tupkg and tupkgs should not output unhashed passwords * tupkg and tupkgs should not output unhashed passwords
@ -11,8 +13,13 @@ TIER 2 (pretty important)
* add foreign key constraints with on delete cascade to make sure * add foreign key constraints with on delete cascade to make sure
entries are not orphaned in PackageSources and PackageDepends entries are not orphaned in PackageSources and PackageDepends
* migrate to InnoDB tables? * migrate to InnoDB tables?
* tupkgupdate should not run gensync if repo is empty (but should delete
db file if it exists)
TIER 3 (noncritical) TIER 3 (noncritical)
* tupkgupdate should use updatesync instead of gensync - Paul * tupkgupdate should use updatesync instead of gensync - Paul
* error message when a non TU tries to adopt packages * error message when a non TU tries to adopt packages
* add method from the web for setting/changing package category * add method from the web for setting/changing package category
* tupkgupdate should have a flag to keep it from modifying the repo if
suddenly all the PKGBUILDs disappear from the CVS dir (probably an error
not actual clearing house)

View file

@ -122,7 +122,7 @@ class PackageDatabase:
"VALUES (" + str(id) + ", '" + source + "')") "VALUES (" + str(id) + ", '" + source + "')")
# PackageDepends # PackageDepends
for dep in package.depends: for dep in package.depends:
depid = self.lookupOrDummy(dep, locationId) depid = self.lookupOrDummy(dep)
q.execute("INSERT INTO PackageDepends (PackageID, DepPkgID) " + q.execute("INSERT INTO PackageDepends (PackageID, DepPkgID) " +
"VALUES (" + str(id) + ", " + str(depid) + ")") "VALUES (" + str(id) + ", " + str(depid) + ")")

View file

@ -160,7 +160,7 @@ if ($_COOKIE["AURSID"]) {
} }
$shcmd = "/bin/sh -c 'mv ".$upload_file." ".$INCOMING_DIR.$pkg_name; $shcmd = "/bin/sh -c 'mv ".$upload_file." ".$INCOMING_DIR.$pkg_name;
$shcmd.= "/".$_FILES["pfile"]["name"]."'"); $shcmd.= "/".$_FILES["pfile"]["name"]."'";
@exec($shcmd); @exec($shcmd);
# if no error, get list of directory contents and process PKGBUILD # if no error, get list of directory contents and process PKGBUILD