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
53c0b329
Kaydet (Commit)
53c0b329
authored
Haz 05, 2006
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* wishlist: an option for security upgrades
üst
3c8fc294
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
commands.py
pisi/cli/commands.py
+2
-0
operations.py
pisi/operations.py
+8
-2
No files found.
pisi/cli/commands.py
Dosyayı görüntüle @
53c0b329
...
...
@@ -550,6 +550,8 @@ expanded to package names.
super
(
Upgrade
,
self
)
.
options
()
buildno_opts
(
self
)
p
=
self
.
parser
p
.
add_option
(
""
,
"--security"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"select only security upgrades"
))
p
.
add_option
(
"-r"
,
"--bypass-update-repo"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Do not update repositories"
))
p
.
add_option
(
""
,
"--bypass-ldconfig"
,
action
=
"store_true"
,
...
...
pisi/operations.py
Dosyayı görüntüle @
53c0b329
...
...
@@ -369,18 +369,19 @@ def upgrade_pkg_names(A = []):
a minimum or maximum number of upgrades according to options."""
ignore_build
=
ctx
.
get_option
(
'ignore_build_no'
)
security
=
ctx
.
get_option
(
'security'
)
if
not
A
:
# if A is empty, then upgrade all packages
A
=
ctx
.
installdb
.
list_installed
()
# filter packages that are not upgradable
A_0
=
A
=
expand_components
(
set
(
A
))
Ap
=
[]
for
x
in
A
:
if
x
.
endswith
(
ctx
.
const
.
package_suffix
):
ctx
.
ui
.
debug
(
_
(
"Warning: package *name* ends with '.pisi'"
))
if
not
ctx
.
installdb
.
is_installed
(
x
):
ctx
.
ui
.
info
(
_
(
'Package
%
s is not installed.'
)
%
x
,
True
)
continue
...
...
@@ -391,6 +392,9 @@ def upgrade_pkg_names(A = []):
ctx
.
ui
.
info
(
_
(
'Package
%
s is not available in repositories.'
)
%
x
,
True
)
continue
if
security
and
pkg
.
history
[
0
]
.
type
!=
'security'
:
continue
if
ignore_build
or
(
not
build
)
or
(
not
pkg
.
build
):
if
Version
(
release
)
<
Version
(
pkg
.
release
):
Ap
.
append
(
x
)
...
...
@@ -403,6 +407,8 @@ def upgrade_pkg_names(A = []):
else
:
ctx
.
ui
.
info
(
_
(
'Package
%
s is already at the latest build
%
s.'
)
%
(
pkg
.
name
,
pkg
.
build
),
True
)
A
=
set
(
Ap
)
if
len
(
A
)
==
0
:
...
...
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