Skip to content

Function pkg_names shows a package name for a non-existent package #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cFire opened this issue Apr 30, 2019 · 3 comments
Closed

Function pkg_names shows a package name for a non-existent package #3

cFire opened this issue Apr 30, 2019 · 3 comments

Comments

@cFire
Copy link

cFire commented Apr 30, 2019

I'm not sure (yet) in which cases this happens, but I've found an example with "exiftool" which is not a package that exists, yet it is provided as the only matching package by pkg_search.

[ 06:50 coolfire@absolute-unit manager2-cli ]
$ apt search exiftool
Sorting... Done
Full Text Search... Done
forensics-extra/bionic,bionic,now 1.13 all [installed]
  Forensics Environment - extra console components (metapackage)

libimage-exiftool-perl/bionic,bionic,now 10.80-1 all [installed]
  library and program to read and write meta information in multimedia files

ruby-mini-exiftool/bionic,bionic,now 2.9.0-1 all [installed,automatic]
  wrapper for exiftool command-line


[ 06:50 coolfire@absolute-unit manager2-cli ]
$ irb
irb(main):001:0> require 'debian/apt_pkg'
=> true
irb(main):002:0> Debian::AptPkg.init
=> nil
irb(main):003:0> Debian::AptPkg::PkgCache.update
=> false
irb(main):004:0> Debian::AptPkg::PkgCache.pkg_names('exiftool')
=> ["exiftool"]
irb(main):005:0> 
@spk
Copy link
Owner

spk commented Jul 13, 2020

I don't remember why I exposed this method since I don't find any equivalent on python-apt... From my quick lookup this look to come from the Provides from libimage-exiftool-perl so it match on the cache this name. This works for package like archfs too. I think I'm going to remove this method when I've implemented a proper search method since this cause confusion cf #2

spk added a commit that referenced this issue Jul 22, 2020
@spk
Copy link
Owner

spk commented Jul 22, 2020

I've started the listing of packages on cache in 0d76d71 and deprecated the pkg_names method its going to be removed in 0.6.0

@spk
Copy link
Owner

spk commented Sep 7, 2020

Package listing is released in https://github.com/spk/ruby-apt-pkg/releases/tag/v0.5.0

@spk spk closed this as completed Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants