Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
live-installer
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)
0
Konular (issue)
0
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
live-installer
Commits
fb86ce5c
Kaydet (Commit)
fb86ce5c
authored
Haz 11, 2020
tarafından
aaaaa
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixes vol2
üst
237b8e57
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
21 deletions
+12
-21
Makefile
Makefile
+4
-14
configure
configure
+1
-0
dialogs.cpython-37.pyc
live-installer/__pycache__/dialogs.cpython-37.pyc
+0
-0
installer.cpython-37.pyc
live-installer/__pycache__/installer.cpython-37.pyc
+0
-0
partitioning.cpython-37.pyc
live-installer/__pycache__/partitioning.cpython-37.pyc
+0
-0
timezones.cpython-37.pyc
live-installer/__pycache__/timezones.cpython-37.pyc
+0
-0
utils.cpython-37.pyc
live-installer/__pycache__/utils.cpython-37.pyc
+0
-0
gtk_interface.cpython-37.pyc
...staller/frontend/__pycache__/gtk_interface.cpython-37.pyc
+0
-0
partitioning.py
live-installer/partitioning.py
+7
-7
No files found.
Makefile
Dosyayı görüntüle @
fb86ce5c
...
...
@@ -2,27 +2,17 @@ DESTDIR=/
all
:
clean build
build
:
buildmo
mkdir
-p
build/usr/lib/
||
true
cp
-prfv
live-installer build/usr/lib/
build
:
mkdir
-p
build/usr/l
ocal/l
ib/
||
true
cp
-prfv
live-installer build/usr/l
ocal/l
ib/
#set parmissions
chmod
755
-R
build
chown
root
-R
build
buildmo
:
mkdir
-p
build/usr/share/
||
true
@
echo
"Building the mo files"
# WARNING: the second sed below will only works correctly with the languages that don't contain "-"
for
file
in
`
ls
po/
*
.po
`
;
do
\
lang
=
`
echo
$$
file |
sed
's@po/@@'
|
sed
's/\.po//'
|
sed
's/live-installer-//'
`
;
\
install
-d
build/usr/share/live-installer/locale/
$$
lang/LC_MESSAGES/
;
\
msgfmt
-o
build/usr/share/live-installer/locale/
$$
lang/LC_MESSAGES/live-installer.mo
$$
file
;
\
done
\
install
:
cp
-prfv
build/
*
$(DESTDIR)
/
uninstall
:
rm
-rf
$(DESTDIR)
//usr/lib/live-installer
rm
-rf
$(DESTDIR)
//usr/l
ocal/l
ib/live-installer
clean
:
rm
-rf
build
configure
Dosyayı görüntüle @
fb86ce5c
...
...
@@ -38,6 +38,7 @@ done
for
item
in
msgfmt
install
python3
chown chmod
do
is_exists
$item
done
sed
-i
"s|@prefix@|
$prefix
|g"
Makefile.ac
echo
-e
" Prefix:
$prefix
"
echo
-e
" Locale-Support:
$nsl
"
...
...
live-installer/__pycache__/dialogs.cpython-37.pyc
0 → 100644
Dosyayı görüntüle @
fb86ce5c
File added
live-installer/__pycache__/installer.cpython-37.pyc
0 → 100644
Dosyayı görüntüle @
fb86ce5c
File added
live-installer/__pycache__/partitioning.cpython-37.pyc
0 → 100644
Dosyayı görüntüle @
fb86ce5c
File added
live-installer/__pycache__/timezones.cpython-37.pyc
0 → 100644
Dosyayı görüntüle @
fb86ce5c
File added
live-installer/__pycache__/utils.cpython-37.pyc
0 → 100644
Dosyayı görüntüle @
fb86ce5c
File added
live-installer/frontend/__pycache__/gtk_interface.cpython-37.pyc
0 → 100644
Dosyayı görüntüle @
fb86ce5c
File added
live-installer/partitioning.py
Dosyayı görüntüle @
fb86ce5c
...
...
@@ -87,14 +87,14 @@ def get_disks():
if
str
(
type
)
==
"b'disk"
and
device
not
in
exclude_devices
:
# convert size to manufacturer's size for show, e.g. in GB, not GiB!
unit_index
=
'BKMGTPEZY'
.
index
(
size
.
upper
()[
-
1
])
l10n_unit
=
[
_
(
'B'
),
_
(
'kB'
),
_
(
'MB'
),
_
(
'GB'
),
_
(
l10n_unit
=
[
(
'B'
),
(
'kB'
),
(
'MB'
),
(
'GB'
),
(
'TB'
),
'PB'
,
'EB'
,
'ZB'
,
'YB'
][
unit_index
]
size
=
"
%
s
%
s"
%
(
str
(
int
(
float
(
size
[:
-
1
])
*
(
1024
/
1000
)
**
unit_index
)),
l10n_unit
)
model
=
model
.
replace
(
"
\\
x20"
,
" "
)
description
=
'{} ({})'
.
format
(
model
.
strip
(),
size
)
if
int
(
removable
):
description
=
_
(
'Removable:'
)
+
' '
+
description
description
=
(
'Removable:'
)
+
' '
+
description
disks
.
append
((
device
,
description
))
except
Exception
as
detail
:
print
(
"Could not parse blkid output:
%
s (
%
s)"
%
(
line
,
detail
))
...
...
@@ -432,7 +432,7 @@ def full_disk_format(device, create_boot=False, create_swap=True):
def
to_human_readable
(
size
):
for
unit
in
[
' '
,
_
(
'kB'
),
_
(
'MB'
),
_
(
'GB'
),
_
(
'TB'
),
'PB'
,
'EB'
,
'ZB'
,
'YB'
]:
for
unit
in
[
' '
,
(
'kB'
),
(
'MB'
),
(
'GB'
),
(
'TB'
),
'PB'
,
'EB'
,
'ZB'
,
'YB'
]:
if
size
<
1000
:
return
"{:.1f} {}"
.
format
(
size
,
unit
)
size
/=
1000
...
...
@@ -481,12 +481,12 @@ class Partition(object):
parted
.
PARTITION_RAID
:
'RAID'
,
parted
.
PARTITION_PALO
:
'PALO'
,
parted
.
PARTITION_PREP
:
'PReP'
,
parted
.
PARTITION_LOGICAL
:
_
(
'Logical partition'
),
parted
.
PARTITION_EXTENDED
:
_
(
'Extended partition'
),
parted
.
PARTITION_FREESPACE
:
_
(
'Free space'
),
parted
.
PARTITION_LOGICAL
:
(
'Logical partition'
),
parted
.
PARTITION_EXTENDED
:
(
'Extended partition'
),
parted
.
PARTITION_FREESPACE
:
(
'Free space'
),
parted
.
PARTITION_HPSERVICE
:
'HP Service'
,
parted
.
PARTITION_MSFT_RESERVED
:
'MSFT Reserved'
,
}
.
get
(
partition
.
type
,
_
(
'Unknown'
))
}
.
get
(
partition
.
type
,
(
'Unknown'
))
self
.
style
=
{
parted
.
PARTITION_SWAP
:
'swap'
,
parted
.
PARTITION_FREESPACE
:
'freespace'
,
...
...
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