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
94a394f7
Kaydet (Commit)
94a394f7
authored
Şub 10, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove ile ilgili ufak bug gidermesi
üst
0383a2ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
atomicoperations.py
inary/atomicoperations.py
+2
-2
installdb.py
inary/db/installdb.py
+7
-0
install.py
inary/operations/install.py
+1
-1
No files found.
inary/atomicoperations.py
Dosyayı görüntüle @
94a394f7
...
...
@@ -575,8 +575,8 @@ class Remove(AtomicOperation):
super
(
Remove
,
self
)
.
__init__
(
ignore_dep
)
self
.
installdb
=
inary
.
db
.
installdb
.
InstallDB
()
self
.
package_name
=
package_name
self
.
package
=
inary
.
package
.
Package
(
package_name
)
self
.
metadata
=
self
.
package
.
metadata
self
.
package
=
self
.
installdb
.
get_package
(
self
.
package_name
)
self
.
metadata
=
self
.
installdb
.
get_metadata
(
self
.
package_name
)
self
.
store_old_paths
=
store_old_paths
self
.
trigger
=
inary
.
trigger
.
Trigger
()
try
:
...
...
inary/db/installdb.py
Dosyayı görüntüle @
94a394f7
...
...
@@ -355,6 +355,13 @@ class InstallDB(lazydb.LazyDB):
metadata
.
read
(
metadata_xml
)
return
metadata
.
package
def
get_metadata
(
self
,
package
):
metadata
=
inary
.
data
.
metadata
.
MetaData
()
metadata_xml
=
os
.
path
.
join
(
self
.
package_path
(
package
),
ctx
.
const
.
metadata_xml
)
metadata
.
read
(
metadata_xml
)
return
metadata
def
__mark_package
(
self
,
_type
,
package
):
packages
=
self
.
__get_marked_packages
(
_type
)
if
package
not
in
packages
:
...
...
inary/operations/install.py
Dosyayı görüntüle @
94a394f7
...
...
@@ -117,7 +117,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
operations
.
remove
.
remove_conflicting_packages
(
conflicts
)
for
path
in
order
:
for
path
in
paths
:
if
installdb
.
has_package
(
path
):
remove_op
=
atomicoperations
.
Remove
(
path
)
remove_op
.
run_preremove
()
...
...
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