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
ac2a0e05
Unverified
Kaydet (Commit)
ac2a0e05
authored
Eyl 29, 2020
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Filesystem and terminal has been devided into two.
üst
887c44d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
15 deletions
+39
-15
__init__.py
inary/util/__init__.py
+3
-1
filesystem.py
inary/util/filesystem.py
+36
-0
terminal.py
inary/util/terminal.py
+0
-14
No files found.
inary/util/__init__.py
Dosyayı görüntüle @
ac2a0e05
...
...
@@ -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
...
...
inary/util/filesystem.py
0 → 100644
Dosyayı görüntüle @
ac2a0e05
# -*- 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
()
inary/util/
filesystem_
terminal.py
→
inary/util/terminal.py
Dosyayı görüntüle @
ac2a0e05
...
...
@@ -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 #
######################
...
...
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