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
c3149d75
Kaydet (Commit)
c3149d75
authored
Şub 10, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
upgrade buglari halloldu
üst
94a394f7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
atomicoperations.py
inary/atomicoperations.py
+2
-0
install.py
inary/operations/install.py
+1
-1
upgrade.py
inary/operations/upgrade.py
+3
-0
trigger.py
inary/trigger.py
+2
-9
No files found.
inary/atomicoperations.py
Dosyayı görüntüle @
c3149d75
...
...
@@ -301,6 +301,8 @@ class Install(AtomicOperation):
return
self
.
installdb
.
has_package
(
self
.
package_fname
)
def
preinstall
(
self
):
print
(
self
.
metadata
.
package
.
name
)
print
(
self
.
metadata
.
package
.
isA
)
if
(
'postOps'
in
self
.
metadata
.
package
.
isA
):
if
not
self
.
trigger
.
preinstall
(
self
.
package
.
pkg_dir
()):
...
...
inary/operations/install.py
Dosyayı görüntüle @
c3149d75
...
...
@@ -99,6 +99,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
for
x
in
sorted_order
:
ctx
.
ui
.
info
(
_
(
"Downloading {} / {} => [{}]"
)
.
format
(
sorted_order
.
index
(
x
)
+
1
,
len
(
sorted_order
),
x
),
color
=
"yellow"
)
install_op
=
atomicoperations
.
Install
.
from_name
(
x
)
install_op
.
store_inary_files
()
paths
.
append
(
install_op
.
package_fname
)
if
x
in
extra_packages
or
(
extra
and
x
in
A
):
...
...
@@ -116,7 +117,6 @@ def install_pkg_names(A, reinstall=False, extra=False):
if
conflicts
:
operations
.
remove
.
remove_conflicting_packages
(
conflicts
)
for
path
in
paths
:
if
installdb
.
has_package
(
path
):
remove_op
=
atomicoperations
.
Remove
(
path
)
...
...
inary/operations/upgrade.py
Dosyayı görüntüle @
c3149d75
...
...
@@ -13,6 +13,7 @@
#
import
sys
import
os
import
gettext
...
...
@@ -216,9 +217,11 @@ def upgrade(A=None, repo=None):
conflicts
=
operations
.
helper
.
check_conflicts
(
order
,
packagedb
)
paths
=
[]
extra_paths
=
{}
for
x
in
order
:
ctx
.
ui
.
info
(
_
(
"Downloading {} / {} => [{}]"
)
.
format
(
order
.
index
(
x
)
+
1
,
len
(
order
),
x
),
color
=
"yellow"
)
install_op
=
atomicoperations
.
Install
.
from_name
(
x
)
install_op
.
store_inary_files
()
paths
.
append
(
install_op
.
package_fname
)
# fetch to be upgraded packages but do not install them.
...
...
inary/trigger.py
Dosyayı görüntüle @
c3149d75
...
...
@@ -27,15 +27,8 @@ class Trigger:
"""Compiles the script and returns a code object"""
fname
=
util
.
join_path
(
self
.
postscript
)
try
:
buf
=
open
(
fname
)
.
read
()
return
compile
(
buf
,
fname
,
"exec"
)
except
IOError
as
e
:
raise
Error
(
_
(
"Unable to read Post Operations Script ({0}): {1}"
)
.
format
(
fname
,
e
))
except
SyntaxError
as
e
:
raise
Error
(
_
(
"SyntaxError in Post Operations Script ({0}): {1}"
)
.
format
(
fname
,
e
))
buf
=
open
(
fname
)
.
read
()
return
compile
(
buf
,
fname
,
"exec"
)
def
run_command
(
self
,
func
):
""""""
...
...
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