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

xbps-query: set a non-zero return code if requested property is not set for the queried package

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c, shell
Ambito
cli

Direzione di ricerca

Start by locating the xbps-query implementation that handles the --property option and inspect how it behaves when the requested property is unset. Test changelog and homepage queries against packages with and without those properties; done means an unset requested property produces a non-zero status while an available property retains the current behavior.

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

Descrizione

Currently when I'm looking for a changelog and a package doesn't have the property set I fall back to opening the homepage, like this:

url=$(xbps-query --repository --property=changelog "$package")
if [[ -n $url ]]; then
	url=$(xbps-query --repository --property=homepage "$package")
fi
xdg-open "$url"

With this feature I could rewrite that to something like this:

if ! url=$(xbps-query --repository --property=changelog "$package"); then
	url=$(xbps-query --repository --property=homepage "$package")
fi
xdg-open "$url" 
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.