summaryrefslogtreecommitdiffstats
path: root/scripts/cleanup
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cleanup')
-rwxr-xr-xscripts/cleanup2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cleanup b/scripts/cleanup
index 21c913a1..4fc9ea2d 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++;