summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-11-25 08:42:23 +0100
committerRemi Collet <remi@remirepo.net>2020-11-25 08:42:23 +0100
commit6f3c630188dae76fd2237bb1d05ab2f49d502765 (patch)
tree438737faded3fd3e54f70273434581169d0cf03e
parentac9b2488788cba18bc9de7c0202262210fad04a1 (diff)
cleanoldrpm: cleanup
-rwxr-xr-xcleanoldrpm8
1 files changed, 3 insertions, 5 deletions
diff --git a/cleanoldrpm b/cleanoldrpm
index e8451b9..b21e9e3 100755
--- a/cleanoldrpm
+++ b/cleanoldrpm
@@ -3,15 +3,13 @@
if (!extension_loaded("rpminfo")) die("rpminfo extension is missing\n");
-define('MODE_PREVIEW', 1);
-define('MODE_DELETE', 2);
$mode = 0;
$keep = 0;
$dest = false;
$multi = [
- 'php' => 3,
- 'redis' => 1,
- 'composer' => 1,
+ 'php' => 3, // php/8.0
+ 'redis' => 1, // redis/6
+ 'composer' => 1, // composer/2
];
if (isset($_SERVER['argv'][1])) {
$keep = (int)$_SERVER['argv'][1];