Ticket #1302 (new defect)

Opened 12 years ago

Last modified 7 years ago

config-package-dev uses deprecated --control-path option to dpkg-query

Reported by: geofft Owned by:
Priority: insignificant Milestone: The Distant Future
Component: config-package-dev Keywords:
Cc: Fixed in version:
Upstream bug:

Description

The CDBS implementation of config-package-dev uses dpkg-query --control-path to find the md5sums file, and the Debhelper version uses Dpkg::Path::get_control_path, which shells out to the same command. The dpkg manpage notes that this option is deprecated, and that you should use --control-list to see if a control file exists and --control-show to get its contents.

I don't actually expect the option to go away ~ever, but it's worth noting that we're using a deprecated API.

Change History

comment:1 Changed 11 years ago by geofft

We're currently not using Dpkg::Path::get_control_path for the sake of backports, so maybe in the long term we'll just switch to using the shell version. Still, I've filed  DebianBug:735021 about exposing something non-deprecated in Perl.

comment:2 Changed 7 years ago by geofft

The current dpkg-query man page has some text implying that --control-path isn't going to be removed anytime soon, and there's been no activity on the bug about a Perl version, so I'm inclined to not care for the next few years.

Note: See TracTickets for help on using tickets.