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
afd0dc0a
Kaydet (Commit)
afd0dc0a
authored
Eyl 25, 2006
tarafından
Faik Uygur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* pisi li -c system.kernel.drivers. components are not recursive, yet.
üst
4ddb9ce6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
commands.py
pisi/cli/commands.py
+14
-4
No files found.
pisi/cli/commands.py
Dosyayı görüntüle @
afd0dc0a
...
...
@@ -942,6 +942,8 @@ Usage: list-installed
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 installed packages under given component"
))
group
.
add_option
(
"-i"
,
"--install-info"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"show detailed install info"
))
...
...
@@ -949,12 +951,20 @@ Usage: list-installed
def
run
(
self
):
self
.
init
(
database
=
True
,
write
=
False
)
list
=
ctx
.
installdb
.
list_installed
()
list
.
sort
()
installed
=
ctx
.
installdb
.
list_installed
()
component
=
ctx
.
get_option
(
'component'
)
if
component
:
#FIXME: pisi api is insufficient to do this
from
sets
import
Set
as
set
component_pkgs
=
ctx
.
componentdb
.
get_component
(
component
)
.
packages
installed
=
list
(
set
(
installed
)
&
set
(
component_pkgs
))
installed
.
sort
()
if
self
.
options
.
install_info
:
ctx
.
ui
.
info
(
_
(
'Package Name |St| Version| Rel.| Build| Distro| Date'
))
print
'========================================================================'
for
pkg
in
list
:
for
pkg
in
installed
:
package
=
ctx
.
packagedb
.
get_package
(
pkg
,
pisi
.
itembyrepodb
.
installed
)
inst_info
=
ctx
.
installdb
.
get_info
(
pkg
)
if
self
.
options
.
long
:
...
...
@@ -1320,7 +1330,7 @@ Lists the packages that will be upgraded.
if
component
:
#FIXME: pisi api is insufficient to do this
from
sets
import
Set
as
set
component_pkgs
=
ctx
.
componentdb
.
get_component
(
component
,
None
)
.
packages
component_pkgs
=
ctx
.
componentdb
.
get_component
(
component
)
.
packages
upgradable_pkgs
=
list
(
set
(
upgradable_pkgs
)
&
set
(
component_pkgs
))
if
not
upgradable_pkgs
:
...
...
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