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
6f2a8f21
Kaydet (Commit)
6f2a8f21
authored
Tem 09, 2019
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Ufak hata giderme
üst
bd38fd66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
reactor.py
inary/reactor.py
+4
-0
No files found.
inary/reactor.py
Dosyayı görüntüle @
6f2a8f21
...
...
@@ -21,6 +21,7 @@ def post_install(package_name, provided_scripts,
sys
.
path
.
insert
(
0
,
pkg_path
+
"/"
+
ctx
.
const
.
scom_dir
)
import
package
as
package_py
package_py
.
postInstall
(
fromVersion
,
fromRelease
,
toVersion
,
toRelease
)
del
package_py
sys
.
path
.
pop
(
0
)
def
post_install
(
package_name
,
provided_scripts
,
...
...
@@ -34,6 +35,7 @@ def post_install(package_name, provided_scripts,
import
package
as
package_py
if
"postInstall"
in
dir
(
package_py
):
package_py
.
postInstall
(
fromVersion
,
fromRelease
,
toVersion
,
toRelease
)
del
package_py
sys
.
path
.
pop
(
0
)
def
post_remove
(
package_name
,
metapath
,
filepath
,
provided_scripts
=
None
):
...
...
@@ -43,6 +45,7 @@ def post_remove(package_name, metapath, filepath, provided_scripts=None):
import
package
as
package_py
if
"postInstall"
in
dir
(
package_py
):
package_py
.
postRemove
(
timeout
=
ctx
.
dbus_timeout
)
del
package_py
sys
.
path
.
pop
(
0
)
def
pre_remove
(
package_name
,
metapath
,
filepath
):
...
...
@@ -52,4 +55,5 @@ def pre_remove(package_name, metapath, filepath):
import
package
as
package_py
if
"postInstall"
in
dir
(
package_py
):
package_py
.
preRemove
(
timeout
=
ctx
.
dbus_timeout
)
del
package_py
sys
.
path
.
pop
(
0
)
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