summaryrefslogtreecommitdiff
path: root/scripts/Dpkg
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-09-19 02:29:49 +0200
committerGuillem Jover <guillem@debian.org>2017-09-24 21:03:10 +0200
commitc365c51ea613d11b5cdc1c82f1f7062b990d5b07 (patch)
tree828c4159e1f6bc88fd2b482986f2fb1144a920f7 /scripts/Dpkg
parent04f99e25b9d4fa3f3d63b89ae4d702364d407c26 (diff)
downloaddpkg-c365c51ea613d11b5cdc1c82f1f7062b990d5b07.tar.gz
scripts: Fix function signatures documentation
Diffstat (limited to 'scripts/Dpkg')
-rw-r--r--scripts/Dpkg/Build/Env.pm10
-rw-r--r--scripts/Dpkg/Vendor.pm12
2 files changed, 11 insertions, 11 deletions
diff --git a/scripts/Dpkg/Build/Env.pm b/scripts/Dpkg/Build/Env.pm
index 9312d2d3c..856d185fe 100644
--- a/scripts/Dpkg/Build/Env.pm
+++ b/scripts/Dpkg/Build/Env.pm
@@ -38,7 +38,7 @@ environment variables being used and modified.
=over 4
-=item $bf->set($varname, $value)
+=item set($varname, $value)
Update the build environment variable $varname with value $value. Record
it as being accessed and modified.
@@ -52,7 +52,7 @@ sub set {
$ENV{$varname} = $value;
}
-=item $bf->get($varname)
+=item get($varname)
Get the build environment variable $varname value. Record it as being
accessed.
@@ -65,7 +65,7 @@ sub get {
return $ENV{$varname};
}
-=item $bf->has($varname)
+=item has($varname)
Return a boolean indicating whether the environment variable exists.
Record it as being accessed.
@@ -78,7 +78,7 @@ sub has {
return exists $ENV{$varname};
}
-=item @list = $bf->list_accessed()
+=item @list = list_accessed()
Returns a list of all environment variables that have been accessed.
@@ -89,7 +89,7 @@ sub list_accessed {
return @list;
}
-=item @list = $bf->list_modified()
+=item @list = list_modified()
Returns a list of all environment variables that have been modified.
diff --git a/scripts/Dpkg/Vendor.pm b/scripts/Dpkg/Vendor.pm
index 99b56b5ed..196159156 100644
--- a/scripts/Dpkg/Vendor.pm
+++ b/scripts/Dpkg/Vendor.pm
@@ -70,7 +70,7 @@ file can have the same casing as the Vendor field, or it can be capitalized.
=over 4
-=item $dir = Dpkg::Vendor::get_vendor_dir()
+=item $dir = get_vendor_dir()
Returns the current dpkg origins directory name, where the vendor files
are stored.
@@ -81,7 +81,7 @@ sub get_vendor_dir {
return $origins;
}
-=item $fields = Dpkg::Vendor::get_vendor_info($name)
+=item $fields = get_vendor_info($name)
Returns a Dpkg::Control object with the information parsed from the
corresponding vendor file in $Dpkg::CONFDIR/origins/. If $name is omitted,
@@ -104,7 +104,7 @@ sub get_vendor_info(;$) {
return $fields;
}
-=item $name = Dpkg::Vendor::get_vendor_file($name)
+=item $name = get_vendor_file($name)
Check if there's a file for the given vendor and returns its
name.
@@ -124,7 +124,7 @@ sub get_vendor_file(;$) {
return $file;
}
-=item $name = Dpkg::Vendor::get_current_vendor()
+=item $name = get_current_vendor()
Returns the name of the current vendor. If DEB_VENDOR is set, it uses
that first, otherwise it falls back to parsing $Dpkg::CONFDIR/origins/default.
@@ -143,7 +143,7 @@ sub get_current_vendor() {
return;
}
-=item $object = Dpkg::Vendor::get_vendor_object($name)
+=item $object = get_vendor_object($name)
Return the Dpkg::Vendor::* object of the corresponding vendor.
If $name is omitted, return the object of the current vendor.
@@ -180,7 +180,7 @@ sub get_vendor_object {
}
}
-=item Dpkg::Vendor::run_vendor_hook($hookid, @params)
+=item run_vendor_hook($hookid, @params)
Run a hook implemented by the current vendor object.