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
1f245585
Kaydet (Commit)
1f245585
authored
Ara 18, 2005
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* fix: set install pending only if there is indeed a Package.py
script
üst
377b9c8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
atomicoperations.py
pisi/atomicoperations.py
+17
-9
installdb.py
pisi/installdb.py
+6
-2
No files found.
pisi/atomicoperations.py
Dosyayı görüntüle @
1f245585
...
...
@@ -81,10 +81,16 @@ class Install(AtomicOperation):
if
self
.
metadata
.
package
.
providesComar
and
ctx
.
comar
:
import
pisi.comariface
as
comariface
self
.
register_comar_scripts
()
ctx
.
ui
.
notify
(
pisi
.
ui
.
configuring
,
package
=
self
.
pkginfo
,
files
=
self
.
files
)
comariface
.
run_postinstall
(
self
.
pkginfo
.
name
)
ctx
.
ui
.
notify
(
pisi
.
ui
.
configured
,
package
=
self
.
pkginfo
,
files
=
self
.
files
)
self
.
config_later
=
False
if
'Comar'
in
self
.
metadata
.
package
.
providesComar
:
if
ctx
.
comar
:
ctx
.
ui
.
notify
(
pisi
.
ui
.
configuring
,
package
=
self
.
pkginfo
,
files
=
self
.
files
)
comariface
.
run_postinstall
(
self
.
pkginfo
.
name
)
ctx
.
ui
.
notify
(
pisi
.
ui
.
configured
,
package
=
self
.
pkginfo
,
files
=
self
.
files
)
else
:
self
.
config_later
=
True
txn
=
ctx
.
dbenv
.
txn_begin
()
try
:
self
.
update_databases
(
txn
)
...
...
@@ -243,6 +249,7 @@ class Install(AtomicOperation):
self
.
metadata
.
package
.
release
,
self
.
metadata
.
package
.
build
,
self
.
metadata
.
package
.
distribution
,
self
.
config_later
,
False
,
txn
)
...
...
@@ -430,12 +437,13 @@ def virtual_install(metadata, files, txn):
# installdb
ctx
.
installdb
.
install
(
metadata
.
package
.
name
,
metadata
.
package
.
version
,
metadata
.
package
.
release
,
metadata
.
package
.
build
,
metadata
.
package
.
distribution
,
True
,
txn
)
metadata
.
package
.
version
,
metadata
.
package
.
release
,
metadata
.
package
.
build
,
metadata
.
package
.
distribution
,
False
,
True
,
txn
)
# filesdb
ctx
.
filesdb
.
add_files
(
metadata
.
package
.
name
,
files
,
txn
)
...
...
pisi/installdb.py
Dosyayı görüntüle @
1f245585
...
...
@@ -145,18 +145,22 @@ class InstallDB:
else
:
return
False
def
install
(
self
,
pkg
,
version
,
release
,
build
,
distro
=
""
,
rebuild
=
False
,
txn
=
None
):
def
install
(
self
,
pkg
,
version
,
release
,
build
,
distro
=
""
,
config_later
=
False
,
rebuild
=
False
,
txn
=
None
):
"""install package with specific version, release, build"""
pkg
=
str
(
pkg
)
def
proc
(
txn
):
if
self
.
is_installed
(
pkg
,
txn
):
raise
InstallDBError
(
_
(
"Already installed"
))
if
c
tx
.
config
.
get_option
(
'ignore_comar'
)
:
if
c
onfig_later
:
state
=
'ip'
self
.
dp
.
put
(
pkg
,
True
,
txn
)
else
:
state
=
'i'
# FIXME: it might be more appropriate to pass date
# as an argument, or installation data afterwards
# to do this -- exa
if
not
rebuild
:
import
time
ctime
=
time
.
localtime
()
...
...
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