Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
apk-tools
apk-tools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 63
    • Issues 63
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpine
  • apk-toolsapk-tools
  • Issues
  • #7100

Closed
Open
Opened Apr 07, 2017 by Chris Giorgi@TemptorSent

apk should support the use of full '$pkgname-$pkgver' atom as returned by 'apk search -x $pkgname' everywhere '$pkgname' is used

Currently, apk does not consider a full package atom, including version ($pkgname-$pkgver) to match a package which matches that exact atom.
For instance:

# apk search -x linux-grsec
linux-grsec-4.9.20-r0
# apk search -x $(apk search -x linux-grsec)
#

This issue is present in all places where apk expects a $pkgname and receives a complete atom in the format returned by ‘apk search -x $pkgname’.
This behavior is counter-intuitive and leads to significant additional effort being required in parsing within scripts calling apk to strip the version, perform an operation with apk, then check the version actually retrieved.
apk should accept the full atom as returned by ‘apk search -x’, and throw an error if the version specified doesn’t match the available $pkgver.

(from redmine: issue id 7100, created on 2017-04-07)

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/apk-tools#7100