From 7f5af61c884b53a75a2b7f8b5146465f14a71f6b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 31 Jan 2011 11:18:15 -0600 Subject: Drop PackageLocations table and references We don't need this anymore since all packages managed here are well...managed here. Rip out all of the places we were using this field, many of which depended on the magic value '2' anyway. On the display side of things, we had a column that was always showing 'unsupported' that is now gone, and you can no longer sort by this column. Signed-off-by: Dan McGee Signed-off-by: Lukas Fleischer --- scripts/cleanup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/cleanup b/scripts/cleanup index 21c913a..4fc9ea2 100755 --- a/scripts/cleanup +++ b/scripts/cleanup @@ -25,7 +25,7 @@ exec('ls ' . INCOMING_DIR, $files); $count = 0; foreach ($files as $pkgname) { - if (package_location($pkgname) != 'unsupported') { + if (!package_exists($pkgname)) { echo 'Removing ' . INCOMING_DIR . "$pkgname\n"; system('rm -r ' . INCOMING_DIR . $pkgname); $count++; -- cgit v1.2.3-70-g09d2