summaryrefslogtreecommitdiffstats
path: root/lib/Sbuild/NullResolver.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sbuild/NullResolver.pm')
-rw-r--r--lib/Sbuild/NullResolver.pm69
1 files changed, 69 insertions, 0 deletions
diff --git a/lib/Sbuild/NullResolver.pm b/lib/Sbuild/NullResolver.pm
new file mode 100644
index 0000000..3e2bf8c
--- /dev/null
+++ b/lib/Sbuild/NullResolver.pm
@@ -0,0 +1,69 @@
+# ResolverBase.pm: build library for sbuild
+# Copyright © 2018 Johannes Schauer Marin Rodrigues <josch@debian.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
+#
+#######################################################################
+
+package Sbuild::NullResolver;
+
+use strict;
+use warnings;
+
+use Sbuild qw(debug copy);
+use Sbuild::Base;
+use Sbuild::ResolverBase;
+
+BEGIN {
+ use Exporter ();
+ our (@ISA, @EXPORT);
+
+ @ISA = qw(Exporter Sbuild::ResolverBase);
+
+ @EXPORT = qw();
+}
+
+sub new {
+ my $class = shift;
+ my $conf = shift;
+ my $session = shift;
+ my $host = shift;
+
+ my $self = $class->SUPER::new($conf, $session, $host);
+ bless($self, $class);
+
+ return $self;
+}
+
+sub install_deps {
+ my $self = shift;
+ my $name = shift;
+ my @pkgs = @_;
+
+ $self->log("Null resolver: not installing $name dependencies\n");
+
+ return 1;
+}
+
+sub purge_extra_packages {
+ my $self = shift;
+ my $name = shift;
+
+ $self->log("Null resolver: not removing $name dependencies\n");
+
+ return 1;
+}
+
+1;