Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`xbps-query`: Add more fine-grained selectors for listing packages

Aperta
#460 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c
Ambito
cli

Direzione di ricerca

Start at the xbps-query command entry point and trace how its mutually exclusive MODES are parsed and applied. Review how package states are represented, especially dependency and half-removed states. Done means the supported state selectors and their combinations are clearly defined and xbps-query can list packages matching them.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

It would be nice to be able to ask xbps-query to only list packages in a certain state, like "is a dep" (the invert of -m) or "is half-removed". For half-removed one could xbps-query -l | grep -e '^hr', but this would not work for selecting dependencies, since there currently is no "state descriptor" for that (I mean like ii).

While selecting e.g. only dependencies may not seem directly useful at first, there will always be corner-cases where such an option will be useful, and I think a great package manager like xbps should support that. To support this, maybe it would be best if xbps-query had a more generic interface, where you could combine several MODES together (or rather, split out some flags which are currently MODES and call them SELECTORS, and then allow them to be combined arbitrarily). Right now the modes for xbps-query are mutually exclusive.

PS: In case this is a welcome addition to xbps-query I'm happy to work on this, but it will take me some time since I'm currently quite busy, and I'm not familiar with the xbps codebase yet.

Lingua principale
C
Stelle
1.2k
Fork
152
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di void-linux/xbps

Tutte le issue di void-linux/xbps

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.