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
59385538
Kaydet (Commit)
59385538
authored
May 11, 2020
tarafından
Ali Rıza KESKİN
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
son kalan fixlemeler
üst
ef19c09a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
get.py
inary/actionsapi/get.py
+1
-1
inarytools.py
inary/actionsapi/inarytools.py
+1
-2
util.py
inary/util.py
+5
-5
No files found.
inary/actionsapi/get.py
Dosyayı görüntüle @
59385538
...
...
@@ -54,7 +54,7 @@ def curKERNEL():
def
curPYTHON
():
""" returns currently used python's version"""
(
a
,
b
,
c
,
x
,
y
)
=
sys
.
version_info
(
a
,
b
)
=
sys
.
version_info
[:
2
]
return
'python{0}.{1}'
.
format
(
a
,
b
)
...
...
inary/actionsapi/inarytools.py
Dosyayı görüntüle @
59385538
...
...
@@ -198,8 +198,7 @@ def doman(*sourceFiles, pageDirectory=None):
source
=
source
[:
-
3
]
try
:
if
not
pageDirectory
:
pageName
,
pageDirectory
=
source
[:
source
.
rindex
(
'.'
)],
\
source
[
source
.
rindex
(
'.'
)
+
1
:]
pageName
,
pageDirectory
=
source
[
source
.
rindex
(
'.'
)
+
1
:]
except
ValueError
:
error
(
_
(
'ActionsAPI [doman]: Wrong man page file:
\"
{}
\"
'
)
.
format
(
source
))
...
...
inary/util.py
Dosyayı görüntüle @
59385538
...
...
@@ -225,7 +225,7 @@ def human_readable_rate(size=0):
def
format_by_columns
(
strings
,
sep_width
=
2
):
longest_str_len
=
len
(
max
(
strings
,
key
=
len
))
term_
rows
,
term_columns
=
get_terminal_size
()
term_
columns
=
get_terminal_size
()[
1
]
def
get_columns
(
max_count
):
if
longest_str_len
>
term_columns
:
...
...
@@ -1078,7 +1078,7 @@ def split_package_filename(filename):
except
ValueError
:
name
,
version
=
parse_package_name_legacy
(
filename
)
version
,
release
,
build
=
split_version
(
version
)
version
,
release
=
split_version
(
version
)[:
2
]
distro_id
=
arch
=
None
return
name
,
version
,
release
,
distro_id
,
arch
...
...
@@ -1116,8 +1116,7 @@ def split_version(package_version):
example: 1.0.3-5-2 -> (1.0.3, 5, 2)
"""
version
,
sep
,
release_and_build
=
package_version
.
partition
(
"-"
)
release
,
sep
,
build
=
release_and_build
.
partition
(
"-"
)
version
,
release
,
build
=
package_version
.
split
(
'-'
)
return
version
,
release
,
build
...
...
@@ -1257,7 +1256,8 @@ def get_cpu_count():
import
multiprocessing
return
multiprocessing
.
cpu_count
()
except
(
ImportError
,
NotImplementedError
):
return
None
# If we cannot count cpu, we shoult return 1
return
1
def
get_vm_info
():
...
...
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