summaryrefslogtreecommitdiff
path: root/Debian
diff options
context:
space:
mode:
Diffstat (limited to 'Debian')
-rw-r--r--Debian/Debhelper/Buildsystem.pm4
-rw-r--r--Debian/Debhelper/Buildsystem/python_distutils.pm2
2 files changed, 3 insertions, 3 deletions
diff --git a/Debian/Debhelper/Buildsystem.pm b/Debian/Debhelper/Buildsystem.pm
index e2037b5..8fcb97e 100644
--- a/Debian/Debhelper/Buildsystem.pm
+++ b/Debian/Debhelper/Buildsystem.pm
@@ -84,7 +84,7 @@ sub _set_builddir {
# Canonicalize. If build directory ends up the same as source directory, drop it
if (defined $this->{builddir}) {
- $this->{builddir} = $this->_canonpath($this->{builddir});
+ $this->{builddir} = $this->canonpath($this->{builddir});
if ($this->{builddir} eq $this->get_sourcedir()) {
$this->{builddir} = undef;
}
@@ -149,7 +149,7 @@ sub enforce_out_of_source_building {
# Enhanced version of File::Spec::canonpath. It collapses ..
# too so it may return invalid path if symlinks are involved.
# On the other hand, it does not need for the path to exist.
-sub _canonpath {
+sub canonpath {
my ($this, $path)=@_;
my @canon;
my $back=0;
diff --git a/Debian/Debhelper/Buildsystem/python_distutils.pm b/Debian/Debhelper/Buildsystem/python_distutils.pm
index 73ac2e3..bb50257 100644
--- a/Debian/Debhelper/Buildsystem/python_distutils.pm
+++ b/Debian/Debhelper/Buildsystem/python_distutils.pm
@@ -18,7 +18,7 @@ sub DESCRIPTION {
sub DEFAULT_BUILD_DIRECTORY {
my $this=shift;
- return $this->_canonpath($this->get_sourcepath("build"));
+ return $this->canonpath($this->get_sourcepath("build"));
}
sub new {