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
06552f15
Kaydet (Commit)
06552f15
authored
May 20, 2020
tarafından
root
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sulonun eksik yaptigi yerlerle ugrasiyom
üst
fc5adf51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
atomicoperations.py
inary/atomicoperations.py
+1
-1
reconfigure.py
inary/cli/reconfigure.py
+2
-1
install.py
inary/operations/install.py
+3
-1
No files found.
inary/atomicoperations.py
Dosyayı görüntüle @
06552f15
...
...
@@ -668,7 +668,7 @@ class Remove(AtomicOperation):
def
run_postremove
(
self
):
if
(
'postOps'
in
self
.
metadata
.
package
.
isA
):
ctx
.
ui
.
info
(
_
(
'Post-remove configuration have been run for
\"
{}
\"
'
.
format
(
self
.
package_name
)),
color
=
'brightyellow'
)
self
.
trigger
.
postremove
(
self
.
ops_script
)
self
.
trigger
.
postremove
(
self
.
package
.
pkg_dir
()
)
def
update_databases
(
self
):
self
.
remove_db
()
...
...
inary/cli/reconfigure.py
Dosyayı görüntüle @
06552f15
...
...
@@ -26,6 +26,7 @@ import inary.data
import
inary.errors
import
inary.context
as
ctx
import
inary.trigger
import
os
def
reconfigure
(
packages
=
None
):
...
...
@@ -38,7 +39,7 @@ def reconfigure(packages=None):
pkginfo
=
installdb
.
get_package
(
x
)
ops_Dir
=
os
.
path
.
join
(
ctx
.
config
.
packages_dir
(),
"postoperations"
)
ctx
.
ui
.
notify
(
inary
.
ui
.
configuring
,
package
=
pkginfo
,
files
=
None
)
inary
.
trigger
.
Trigger
()
.
postinstall
(
ops_Dir
,
x
)
inary
.
trigger
.
Trigger
()
.
postinstall
(
ops_Dir
)
ctx
.
ui
.
notify
(
inary
.
ui
.
configured
,
package
=
pkginfo
,
files
=
None
)
installdb
.
clear_pending
(
x
)
...
...
inary/operations/install.py
Dosyayı görüntüle @
06552f15
...
...
@@ -99,7 +99,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
_
(
"Downloading"
)
+
str
(
" [ {:>"
+
str
(
lndig
)
+
"} / {} ] => [{}]"
)
.
format
(
order
.
index
(
x
)
+
1
,
len
(
order
),
x
),
color
=
"yellow"
)
install_op
=
atomicoperations
.
Install
.
from_name
(
x
)
install_op
.
store_
inary_file
s
()
install_op
.
store_
postop
s
()
paths
.
append
(
install_op
.
package_fname
)
if
x
in
extra_packages
or
(
extra
and
x
in
A
):
...
...
@@ -128,6 +128,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
for
path
in
paths
:
install_op
=
atomicoperations
.
Install
(
path
)
ctx
.
ui
.
info
(
_
(
"Installing"
)
+
str
(
" [ {:>"
+
str
(
lndig
)
+
"} / {} ]"
)
.
format
(
paths
.
index
(
path
)
+
1
,
len
(
paths
)),
color
=
"yellow"
)
install_op
.
store_inary_files
()
install_op
.
install
(
False
)
try
:
with
open
(
os
.
path
.
join
(
ctx
.
config
.
info_dir
(),
ctx
.
const
.
installed_extra
),
"a"
)
as
ie_file
:
...
...
@@ -136,6 +137,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
except
KeyError
:
pass
for
path
in
paths
:
install_op
=
atomicoperations
.
Install
(
path
)
install_op
.
postinstall
()
...
...
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