xbps-query: set a non-zero return code if requested property is not set for the queried package
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di void-linux/xbps
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
void-linux/xbps#475 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
void-linux/xbps#701 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
void-linux/xbps#700 ·
-
xbps-query -RX repository overridesForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
void-linux/xbps#696 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
void-linux/xbps#695 · 7 commenti ·
Tutte le issue di void-linux/xbps
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
libsdl-org/SDL#16444 ·
I maintainer di solito rispondono entro 1 giorno
-
bug Component component: net
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
RT-Thread/rt-thread#11852 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MiSTer-devel/ao486_MiSTer#243 ·
-
Dropped last row with parallel scan of attached SQLite tables if the rowid range is a multiple of 122,880Forse già presa @staticlibs l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
duckdb/duckdb-sqlite#240 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
siderolabs/pkgs#1710 ·
I maintainer di solito rispondono entro 1 giorno