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
2f51731d
Kaydet (Commit)
2f51731d
authored
May 02, 2006
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* version and release are Version's
üst
7b54f2ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
atomicoperations.py
pisi/atomicoperations.py
+5
-4
No files found.
pisi/atomicoperations.py
Dosyayı görüntüle @
2f51731d
...
...
@@ -33,6 +33,7 @@ from pisi.metadata import MetaData
from
pisi.files
import
Files
from
pisi.uri
import
URI
import
pisi.ui
from
pisi.version
import
Version
#import conflicts
class
Error
(
pisi
.
Error
):
...
...
@@ -195,10 +196,10 @@ class Install(AtomicOperation):
upgrade
=
False
# is this an upgrade?
# determine and report the kind of upgrade: version, release, build
if
pkg
.
version
>
iversion
:
if
Version
(
pkg
.
version
)
>
Version
(
iversion
)
:
ctx
.
ui
.
info
(
_
(
'Upgrading to new upstream version'
))
upgrade
=
True
elif
pkg
.
release
>
irelease
:
elif
Version
(
pkg
.
release
)
>
Version
(
irelease
)
:
ctx
.
ui
.
info
(
_
(
'Upgrading to new distribution release'
))
upgrade
=
True
elif
((
not
ignore_build
)
and
ibuild
and
pkg
.
build
...
...
@@ -209,9 +210,9 @@ class Install(AtomicOperation):
# is this a downgrade? confirm this action.
if
self
.
ask_reinstall
and
(
not
upgrade
):
if
pkg
.
version
<
iversion
:
if
Version
(
pkg
.
version
)
<
Version
(
iversion
)
:
x
=
_
(
'Downgrade to old upstream version?'
)
elif
pkg
.
release
<
irelease
:
elif
Version
(
pkg
.
release
)
<
Version
(
irelease
)
:
x
=
_
(
'Downgrade to old distribution release?'
)
else
:
x
=
_
(
'Downgrade to old distribution build?'
)
...
...
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