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
cbbb3b73
Kaydet (Commit)
cbbb3b73
authored
Eyl 13, 2006
tarafından
Faik Uygur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* No, we can not combine these.. revert 9099
üst
7066c545
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
atomicoperations.py
pisi/atomicoperations.py
+19
-6
No files found.
pisi/atomicoperations.py
Dosyayı görüntüle @
cbbb3b73
...
...
@@ -297,12 +297,25 @@ class Install(AtomicOperation):
for
path
in
leftover
:
Remove
.
remove_file
(
old_fileinfo
[
path
]
)
# You either upgrade/downgrade or install a new package, controls are same.
# If a 'config' typed file coming from the package and the same file
# already exists on the system, it is either a left over from a previously
# uninstalled package or it is upgraded package's currently used config file.
for
file
in
filter
(
lambda
x
:
x
.
type
==
'config'
,
self
.
files
.
list
):
check_config_changed
(
file
)
if
self
.
reinstall
:
# get 'config' typed file objects
new
=
filter
(
lambda
x
:
x
.
type
==
'config'
,
self
.
files
.
list
)
old
=
filter
(
lambda
x
:
x
.
type
==
'config'
,
self
.
old_files
.
list
)
# get config path lists
newconfig
=
set
(
map
(
lambda
x
:
str
(
x
.
path
),
new
))
oldconfig
=
set
(
map
(
lambda
x
:
str
(
x
.
path
),
old
))
config_overlaps
=
newconfig
&
oldconfig
if
config_overlaps
:
files
=
filter
(
lambda
x
:
x
.
path
in
config_overlaps
,
old
)
for
file
in
files
:
check_config_changed
(
file
)
else
:
for
file
in
self
.
files
.
list
:
if
file
.
type
==
'config'
:
# there may be left over config files
check_config_changed
(
file
)
self
.
package
.
extract_install
(
ctx
.
config
.
dest_dir
())
...
...
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