Kaydet (Commit) 12add0a6 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

metadata içerisinde Scom gereksinimi olmayan paketler:

Gereksiz yere içerisinde scom betiği bulunmasa bile paketlerin scomiface bağlantısı yapmaya çalışması bir problemdi ve kısa süreli olarak fixlenmiş idi. Şimdi ise bu hata düzeltildi. Geriye tek yapmam gereken scom dbus servisi çalışmıyor ise yapılan çağrıyı error içerisine çekmeyip pendings listesine atmak olacak bu da çocuk oyuncağı sayılır. 
üst b666e9e8
2019-08-22 Suleyman Poyraz <zaryob.dev@gmail.com> :onbranch:feature/translations:
* Translations Updated
* metadata içerisinde Scom gereksinimi olmayan paketler:
Gereksiz yere içerisinde scom betiği bulunmasa bile paketlerin scomiface bağlantısı yapmaya
çalışması bir problemdi ve kısa süreli olarak fixlenmiş idi. Şimdi ise bu hata düzeltildi. Geriye tek
yapmam gereken scom dbus servisi çalışmıyor ise yapılan çağrıyı error içerisine çekmeyip pendings
listesine atmak olacak bu da çocuk oyuncağı sayılır.
2019-08-21 Suleyman Poyraz <zaryob.dev@gmail.com> :onbranch:feature/scripts:
* İki yeni araç eklendi:
inary-sign.py: Depoları GPG imzası ile imzalamak için kullanılacak araç.
sync-licence: Portage paket yönetimine eklenen lisanslarla elimizdekileri güncelleyecek araç.
* Üç yeni araç daha eklendi:
pspec2po: kaynak depodan adları güncellemek için.
revdep-rebuild
version-bump: spec dosyasının versiyonunu güncellemek için.
2019-08-21 Suleyman Poyraz <zaryob.dev@gmail.com> :onbranch:develop:
* Yeni komut "configure-manager":
Değişen config dosyalarının düzenlemesi bu şekilde basitçe yapılabiliyor.
......
......@@ -199,7 +199,7 @@ class Install(AtomicOperation):
# what to do if / is split into /usr, /var, etc.
# check scom
if self.metadata.package.providesScom and ctx.scom:
if self.metadata.package.providesScom and ctx.scom and not ctx.get_option("ignore_scom"):
import inary.scomiface as scomiface
scomiface.get_link()
......@@ -320,8 +320,8 @@ class Install(AtomicOperation):
else:
ctx.ui.info(_("Chowning in postinstall {0} ({1}:{2})").format(_file.path, _file.uid, _file.gid), verbose=True)
os.chown(fpath, int(_file.uid), int(_file.gid))
if ctx.scom:
if self.metadata.package.providesScom:
if ctx.scom and not ctx.get_option("ignore_scom"):
import inary.scomiface
try:
if self.operation == UPGRADE or self.operation == DOWNGRADE:
......@@ -560,7 +560,7 @@ class Install(AtomicOperation):
inary.db.installdb.InstallDB().mark_needs_reboot(package_name)
# filesdb
ctx.ui.info(_('Adding files of \"{}\" package to database...').format(self.metadata.package.name), color='brightpurple')
ctx.ui.info(_('Adding files of \"{}\" package to database...').format(self.metadata.package.name), color='faintpurple')
ctx.filesdb.add_files(self.metadata.package.name, self.files)
# installed packages
......@@ -699,7 +699,8 @@ class Remove(AtomicOperation):
dpath = os.path.dirname(dpath)
def run_preremove(self):
if ctx.scom:
if self.package.providesScom:
if ctx.scom and not ctx.get_option("ignore_scom"):
import inary.scomiface
inary.scomiface.pre_remove(
self.package_name,
......@@ -708,7 +709,8 @@ class Remove(AtomicOperation):
)
def run_postremove(self):
if ctx.scom:
if self.package.providesScom:
if ctx.scom and not ctx.get_option("ignore_scom"):
import inary.scomiface
inary.scomiface.post_remove(
self.package_name,
......
......@@ -213,7 +213,7 @@ class PackageOp(Command):
def __init__(self, args):
super(PackageOp, self).__init__(args)
self.scom = False
self.scom = True
def options(self, group):
group.add_option("--ignore-dependency", action="store_true",
......
......@@ -117,6 +117,7 @@ expanded to package names.
install.install(packages, ctx.get_option('reinstall') or reinstall)
config_changes = helper.check_config_changes(order=packages)
if config_changes:
if ctx.ui.confirm(_("[!] Some config files have been changed. Would you like to see and apply them?")):
helper.show_changed_configs(config_changes)
......@@ -202,7 +202,7 @@ def check_config_changes(order):
config_changes=dict()
for package in order:
all_files = installdb.get_files(package)
all_files = inary.db.installdb.InstallDB().get_files(package)
config_files = [x for x in all_files.list if x.type == 'config']
config_paths = ["/" + str(x.path) for x in config_files]
......@@ -211,7 +211,7 @@ def check_config_changes(order):
for path in config_paths:
if os.path.exists(path) and os.path.exists(path + ".newconfig"):
newconfig.append(path)
if newconfig:
config_changes[package] = newconfig
return config_changes
......
......@@ -191,7 +191,7 @@ setup(name="inary",
version=inary.__version__,
description="Inary (Special Package Manager)",
long_description="Inary is the package management system of Sulin Linux.",
license="GNU GPL2",
license="GNU AGPLv3",
author="Zaryob",
author_email="zaryob.dev@gmail.com",
url="https://github.com/Zaryob/inary",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment