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
3481d9cf
Kaydet (Commit)
3481d9cf
authored
Haz 05, 2006
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* fix: consider not only the last update but all those friggin' updates
* fix: handle empty sequences in any and every fnxs
üst
0956de2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
operations.py
pisi/operations.py
+4
-2
util.py
pisi/util.py
+2
-2
No files found.
pisi/operations.py
Dosyayı görüntüle @
3481d9cf
...
...
@@ -392,8 +392,10 @@ 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
security
:
# below is a readable functional code, don't overflow lines!
updates
=
[
x
for
x
in
pkg
.
history
if
Version
(
x
.
release
)
>
Version
(
release
)]
if
not
pisi
.
util
.
any
(
lambda
x
:
x
.
type
==
'security'
,
updates
):
continue
if
ignore_build
or
(
not
build
)
or
(
not
pkg
.
build
):
if
Version
(
release
)
<
Version
(
pkg
.
release
):
...
...
pisi/util.py
Dosyayı görüntüle @
3481d9cf
...
...
@@ -74,10 +74,10 @@ class Checks:
#########################
def
every
(
pred
,
seq
):
return
reduce
(
operator
.
and_
,
map
(
pred
,
seq
))
return
reduce
(
operator
.
and_
,
map
(
pred
,
seq
)
,
True
)
def
any
(
pred
,
seq
):
return
reduce
(
operator
.
or_
,
map
(
pred
,
seq
))
return
reduce
(
operator
.
or_
,
map
(
pred
,
seq
)
,
False
)
def
unzip
(
seq
):
return
zip
(
*
seq
)
...
...
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