From bbc05414cf6aa24faa364afb48119f802b50bda2 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Tue, 3 Mar 2009 11:21:08 -0500 Subject: Update cleanup script to remove non-unsupported files. Signed-off-by: Loui Chang --- scripts/cleanup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/cleanup b/scripts/cleanup index 4fc9ea2d..21c913a1 100755 --- a/scripts/cleanup +++ b/scripts/cleanup @@ -25,7 +25,7 @@ exec('ls ' . INCOMING_DIR, $files); $count = 0; foreach ($files as $pkgname) { - if (!package_exists($pkgname)) { + if (package_location($pkgname) != 'unsupported') { echo 'Removing ' . INCOMING_DIR . "$pkgname\n"; system('rm -r ' . INCOMING_DIR . $pkgname); $count++; -- cgit v1.2.3-24-g4f1b