summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-01-02 00:39:08 +0100
committerGuillem Jover <guillem@debian.org>2013-06-22 05:07:34 +0200
commitfb5285f56924fdf84d3281bbf6046f8b4bb00048 (patch)
treea3030aec8a2891a811d7803034a383dd8c33c6ed /scripts/Dpkg/Control
parenta55de1500d33db1192e5c2ace48e58baf252f8b9 (diff)
downloaddpkg-fb5285f56924fdf84d3281bbf6046f8b4bb00048.tar.gz
Dpkg: Deprecate lowercase exported by default variables
Rename, uppercase and do not export new variables by default, to avoid cluttering the caller namespace, and to give them consistent names. We'll keep the old variables for a while, to not break uses from external modules. Addresses Variables::ProhibitPackageVars.
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r--scripts/Dpkg/Control/Types.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Control/Types.pm b/scripts/Dpkg/Control/Types.pm
index 7a2ec63be..433a71360 100644
--- a/scripts/Dpkg/Control/Types.pm
+++ b/scripts/Dpkg/Control/Types.pm
@@ -47,7 +47,7 @@ use constant {
CTRL_PKG_DEB => 32, # DEBIAN/control in binary packages
CTRL_FILE_CHANGES => 64, # .changes file
CTRL_FILE_VENDOR => 128, # File in $Dpkg::CONFDIR/origins
- CTRL_FILE_STATUS => 256, # /var/lib/dpkg/status
+ CTRL_FILE_STATUS => 256, # $Dpkg::ADMINDIR/status
CTRL_CHANGELOG => 512, # Output of dpkg-parsechangelog
};