Unverified Kaydet (Commit) ac2a0e05 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Filesystem and terminal has been devided into two.

üst 887c44d1
......@@ -21,9 +21,11 @@ from inary.util.path import *
from inary.util.package import *
from inary.util.misc import *
from inary.util.kernel import *
from inary.util.filesystem_terminal import *
from inary.util.terminal import *
from inary.util.files import *
from inary.util.curses import *
from inary.util.filesystem import *
from inary.util.terminal import *
import fcntl
import inary
import inary.errors
......
# -*- coding: utf-8 -*-
#
# Main fork Pisi: Copyright (C) 2005 - 2011, Tubitak/UEKAE
#
# Copyright (C) 2016 - 2020, Suleyman POYRAZ (Zaryob)
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
"""misc. utility functions, including filesystem utils"""
# Inary Modules
import os
import inary.context as ctx
# Gettext Library
import gettext
__trans = gettext.translation('inary', fallback=True)
_ = __trans.gettext
########################
# Filesystem functions #
########################
def fs_sync():
if ctx.config.values.general.fs_sync:
ctx.ui.debug(
_("Filesystem syncing (It wouldn't be run whether nosync set with kernel parameters)"))
os.sync()
......@@ -20,9 +20,6 @@ import termios
import fcntl
import sys
import os
import inary
import inary.errors
import inary.context as ctx
# Gettext Library
import gettext
......@@ -30,17 +27,6 @@ __trans = gettext.translation('inary', fallback=True)
_ = __trans.gettext
########################
# Filesystem functions #
########################
def fs_sync():
if ctx.config.values.general.fs_sync:
ctx.ui.debug(
_("Filesystem syncing (It wouldn't be run whether nosync set with kernel parameters)"))
os.sync()
######################
# Terminal functions #
######################
......
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