* prevent warning during upgrade
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
|
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
|
||||||
<!-- Project file for project pisi -->
|
<!-- Project file for project pisi -->
|
||||||
<!-- Saved: 2005-12-15, 04:01:47 -->
|
<!-- Saved: 2006-02-15, 02:00:52 -->
|
||||||
<!-- Copyright (C) 2005 PiSi Development Team, -->
|
<!-- Copyright (C) 2006 PiSi Development Team, -->
|
||||||
<Project version="3.8">
|
<Project version="3.8">
|
||||||
<ProgLanguage mixed="0">Python</ProgLanguage>
|
<ProgLanguage mixed="0">Python</ProgLanguage>
|
||||||
<UIType>Qt</UIType>
|
<UIType>Qt</UIType>
|
||||||
@@ -11,10 +11,6 @@
|
|||||||
<Author>PiSi Development Team</Author>
|
<Author>PiSi Development Team</Author>
|
||||||
<EmaIl></EmaIl>
|
<EmaIl></EmaIl>
|
||||||
<Sources>
|
<Sources>
|
||||||
<Source>
|
|
||||||
<Dir>tools</Dir>
|
|
||||||
<Name>ebuild2pisi.py</Name>
|
|
||||||
</Source>
|
|
||||||
<Source>
|
<Source>
|
||||||
<Dir>tools</Dir>
|
<Dir>tools</Dir>
|
||||||
<Name>cat-db.py</Name>
|
<Name>cat-db.py</Name>
|
||||||
@@ -512,9 +508,9 @@
|
|||||||
</Vcs>
|
</Vcs>
|
||||||
<FiletypeAssociations>
|
<FiletypeAssociations>
|
||||||
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
|
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
|
||||||
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
|
|
||||||
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
|
|
||||||
<FiletypeAssociation pattern="*.ui" type="FORMS" />
|
<FiletypeAssociation pattern="*.ui" type="FORMS" />
|
||||||
|
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
|
||||||
|
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
|
||||||
<FiletypeAssociation pattern="*.py" type="SOURCES" />
|
<FiletypeAssociation pattern="*.py" type="SOURCES" />
|
||||||
</FiletypeAssociations>
|
</FiletypeAssociations>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
+24
-18
@@ -104,22 +104,8 @@ class Install(AtomicOperation):
|
|||||||
self.extract_install()
|
self.extract_install()
|
||||||
self.store_pisi_files()
|
self.store_pisi_files()
|
||||||
|
|
||||||
self.config_later = False
|
self.register_comar()
|
||||||
|
self.postinstall()
|
||||||
if self.metadata.package.providesComar:
|
|
||||||
if ctx.comar:
|
|
||||||
import pisi.comariface as comariface
|
|
||||||
self.register_comar_scripts()
|
|
||||||
else:
|
|
||||||
self.config_later = True # configure-pending will register scripts later
|
|
||||||
|
|
||||||
if 'System.Package' in [x.om for x 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()
|
txn = ctx.dbenv.txn_begin()
|
||||||
try:
|
try:
|
||||||
@@ -221,7 +207,27 @@ class Install(AtomicOperation):
|
|||||||
self.old_files = ctx.installdb.files(pkg.name)
|
self.old_files = ctx.installdb.files(pkg.name)
|
||||||
self.old_path = ctx.installdb.pkg_dir(pkg.name, iversion, irelease)
|
self.old_path = ctx.installdb.pkg_dir(pkg.name, iversion, irelease)
|
||||||
self.reinstall = True
|
self.reinstall = True
|
||||||
Remove(pkg.name).run_preremove()
|
self.remove_old = Remove(pkg.name)
|
||||||
|
self.remove_old.run_preremove()
|
||||||
|
|
||||||
|
def register_comar(self):
|
||||||
|
self.config_later = False
|
||||||
|
|
||||||
|
if self.metadata.package.providesComar:
|
||||||
|
if ctx.comar:
|
||||||
|
import pisi.comariface as comariface
|
||||||
|
self.register_comar_scripts()
|
||||||
|
else:
|
||||||
|
self.config_later = True # configure-pending will register scripts later
|
||||||
|
|
||||||
|
def postinstall(self):
|
||||||
|
if 'System.Package' in [x.om for x 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
|
||||||
|
|
||||||
def extract_install(self):
|
def extract_install(self):
|
||||||
"unzip package in place"
|
"unzip package in place"
|
||||||
@@ -272,7 +278,7 @@ class Install(AtomicOperation):
|
|||||||
def update_databases(self, txn):
|
def update_databases(self, txn):
|
||||||
"update databases"
|
"update databases"
|
||||||
if self.reinstall:
|
if self.reinstall:
|
||||||
Remove(self.metadata.package.name).remove_db(txn)
|
self.remove_old.remove_db(txn)
|
||||||
|
|
||||||
# installdb
|
# installdb
|
||||||
ctx.installdb.install(self.metadata.package.name,
|
ctx.installdb.install(self.metadata.package.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user