Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
96f98f22
Kaydet (Commit)
96f98f22
authored
Eyl 25, 2006
tarafından
Faik Uygur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* pisi list-available -c system.kernel.drivers
pisi does not support recursive traversion of components yet.
üst
38c22857
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
commands.py
pisi/cli/commands.py
+7
-3
No files found.
pisi/cli/commands.py
Dosyayı görüntüle @
96f98f22
...
...
@@ -23,7 +23,6 @@ import pisi.context as ctx
from
pisi.uri
import
URI
import
pisi.util
as
util
import
pisi.api
as
api
import
pisi.packagedb
as
packagedb
from
colors
import
colorize
class
Error
(
pisi
.
Error
):
...
...
@@ -1163,6 +1162,8 @@ all repositories.
group
=
OptionGroup
(
self
.
parser
,
_
(
"list-available options"
))
group
.
add_option
(
"-l"
,
"--long"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"show in long format"
))
group
.
add_option
(
"-c"
,
"--component"
,
action
=
"store"
,
default
=
None
,
help
=
_
(
"list available packages under given component"
))
group
.
add_option
(
"-U"
,
"--uninstalled"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"show uninstalled packages only"
))
self
.
parser
.
add_option_group
(
group
)
...
...
@@ -1185,9 +1186,12 @@ all repositories.
self
.
finalize
()
def
print_packages
(
self
,
repo
):
from
pisi
import
packagedb
list
=
ctx
.
packagedb
.
list_packages
(
repo
)
component
=
ctx
.
get_option
(
'component'
)
if
component
:
list
=
ctx
.
componentdb
.
get_component
(
component
,
repo
)
.
packages
else
:
list
=
ctx
.
packagedb
.
list_packages
(
repo
)
installed_list
=
ctx
.
installdb
.
list_installed
()
list
.
sort
()
for
p
in
list
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment