summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Source/Package.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Dpkg/Source/Package.pm')
-rw-r--r--scripts/Dpkg/Source/Package.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/Dpkg/Source/Package.pm b/scripts/Dpkg/Source/Package.pm
index 6c9cba2ca..c9d1a07e2 100644
--- a/scripts/Dpkg/Source/Package.pm
+++ b/scripts/Dpkg/Source/Package.pm
@@ -374,6 +374,10 @@ sub do_extract {
# Function used specifically during creation of a source package
+sub before_build {
+ my ($self, $dir) = @_;
+}
+
sub build {
my $self = shift;
eval { $self->do_build(@_) };
@@ -383,6 +387,10 @@ sub build {
}
}
+sub after_build {
+ my ($self, $dir) = @_;
+}
+
sub do_build {
internerr("Dpkg::Source::Package doesn't know how to build a " .
"source package. Use one of the subclasses.");