Prva verzija za buster.
[ocsinventory-agent-cn.git] / Deb.pm
diff --git a/Deb.pm b/Deb.pm
deleted file mode 100644 (file)
index b64552a..0000000
--- a/Deb.pm
+++ /dev/null
@@ -1,26 +0,0 @@
-package Ocsinventory::Agent::Backend::OS::Generic::Packaging::Deb;
-
-use strict;
-use warnings;
-
-sub check { can_run("dpkg") }
-
-sub run {
-  my $params = shift;
-  my $common = $params->{common};
-
-# use dpkg-query --show --showformat='${Package}|||${Version}\n'
-  foreach(`dpkg-query --show --showformat='\${Status}---\${Package}---\${Version}---\${Installed-Size}---\${Description}\n' | grep ^'install ok installed'`) {
-     if (/^(\S+)---(\S+)---(\S+)---(\S+)---(.*)/) {
-       $common->addSoftware ({
-         'NAME'          => $2,
-         'VERSION'       => $3,
-         'FILESIZE'      => $4,
-         'COMMENTS'      => $5,
-         'FROM'          => 'deb'
-       });
-    }
-  }
-}
-
-1;