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
eb017c9e
Kaydet (Commit)
eb017c9e
authored
Agu 14, 2019
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Daha nazik ve şık çıktılar
Nazik ve birazcık daha okunabilir çıktılar.
üst
0618c676
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
12 deletions
+13
-12
atomicoperations.py
inary/atomicoperations.py
+3
-2
__init__.py
inary/cli/__init__.py
+1
-1
addrepo.py
inary/cli/addrepo.py
+1
-1
file.py
inary/file.py
+1
-1
emerge.py
inary/operations/emerge.py
+1
-1
history.py
inary/operations/history.py
+2
-2
install.py
inary/operations/install.py
+2
-2
remove.py
inary/operations/remove.py
+1
-1
upgrade.py
inary/operations/upgrade.py
+1
-1
No files found.
inary/atomicoperations.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -554,7 +554,7 @@ class Install(AtomicOperation):
inary
.
db
.
installdb
.
InstallDB
()
.
mark_needs_reboot
(
package_name
)
# filesdb
ctx
.
ui
.
info
(
_
(
'Adding files of
\"
{}
\"
package to d
b
...'
)
.
format
(
self
.
metadata
.
package
.
name
),
color
=
'brightpurple'
)
ctx
.
ui
.
info
(
_
(
'Adding files of
\"
{}
\"
package to d
atabase
...'
)
.
format
(
self
.
metadata
.
package
.
name
),
color
=
'brightpurple'
)
ctx
.
filesdb
.
add_files
(
self
.
metadata
.
package
.
name
,
self
.
files
)
# installed packages
...
...
@@ -716,11 +716,12 @@ class Remove(AtomicOperation):
self
.
historydb
.
add_and_update
(
pkgBefore
=
self
.
package
,
operation
=
"remove"
)
def
remove_inary_files
(
self
):
ctx
.
ui
.
info
(
_
(
'Removing files of
\"
{}
\"
package from system'
)
.
format
(
self
.
package_name
),
color
=
'faintpurple'
)
util
.
clean_dir
(
self
.
package
.
pkg_dir
())
def
remove_db
(
self
):
self
.
installdb
.
remove_package
(
self
.
package_name
)
ctx
.
ui
.
info
(
_
(
'Removing files of
\"
{}
\"
package from database...'
)
.
format
(
self
.
package_name
),
color
=
'faintyellow'
)
self
.
installdb
.
remove_package
(
self
.
package_name
)
ctx
.
filesdb
.
remove_files
(
self
.
files
.
list
)
...
...
inary/cli/__init__.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -212,7 +212,7 @@ class CLI(inary.ui.UI):
color
=
'brightgreen'
elif
event
==
inary
.
ui
.
removing
:
msg
=
_
(
'Removing
\"
{}
\"
'
)
.
format
(
keywords
[
'package'
]
.
name
)
color
=
'
fain
tpurple'
color
=
'
brigh
tpurple'
elif
event
==
inary
.
ui
.
upgraded
:
msg
=
_
(
'Upgraded
\"
{}
\"
'
)
.
format
(
keywords
[
'package'
]
.
name
)
color
=
'brightgreen'
...
...
inary/cli/addrepo.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -71,7 +71,7 @@ NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment
if
ctx
.
ui
.
confirm
(
_
(
'Add
\"
{}
\"
repository without updating the database?
\n
By confirming '
'this you are also adding the repository to your system without '
'checking the distribution of the repository.
\n
'
'
Do you want
to continue?'
)
.
format
(
name
)):
'
Would you like
to continue?'
)
.
format
(
name
)):
self
.
just_add
=
True
if
indexuri
.
endswith
(
".xml.xz"
)
or
indexuri
.
endswith
(
".xml"
):
...
...
inary/file.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -265,7 +265,7 @@ class File:
if
ret
:
ctx
.
ui
.
info
(
"Checking GPG Signature failed ('gpg --verify {}')"
.
format
(
sigfilename
),
color
=
'cyan'
)
ctx
.
ui
.
info
(
err
.
decode
(
"utf-8"
),
color
=
'faintcyan'
)
if
not
ctx
.
ui
.
confirm
(
"Would you like skip checking gpg signature?"
):
if
not
ctx
.
ui
.
confirm
(
"Would you like
to
skip checking gpg signature?"
):
raise
InvalidSignature
(
uri
)
# everything is all right here
def
flush
(
self
):
...
...
inary/operations/emerge.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -68,7 +68,7 @@ installed in the respective order to satisfy dependencies:
return
if
len
(
order_inst
)
+
len
(
order_build
)
>
len
(
A_0
):
if
not
ctx
.
ui
.
confirm
(
_
(
'There are extra packages due to dependencies.
Do you want
to continue?'
)):
if
not
ctx
.
ui
.
confirm
(
_
(
'There are extra packages due to dependencies.
Would you like
to continue?'
)):
return
False
ctx
.
ui
.
notify
(
ui
.
packagestogo
,
order
=
order_inst
)
...
...
inary/operations/history.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -204,7 +204,7 @@ def takeback(operation):
if
beremoved
:
ctx
.
ui
.
info
(
_
(
"Following packages will be removed:
\n
"
)
+
util
.
strlist
(
beremoved
))
if
(
beremoved
or
beinstalled
)
and
not
ctx
.
ui
.
confirm
(
_
(
'
Do you want
to continue?'
)):
if
(
beremoved
or
beinstalled
)
and
not
ctx
.
ui
.
confirm
(
_
(
'
Would you like
to continue?'
)):
return
errors
=
[]
...
...
@@ -218,7 +218,7 @@ def takeback(operation):
if
errors
:
ctx
.
ui
.
info
(
_
(
"
\n
Following packages could not be found in repositories and are not cached:
\n
"
)
+
util
.
strlist
(
errors
))
if
not
ctx
.
ui
.
confirm
(
_
(
'
Do you want
to continue?'
)):
if
not
ctx
.
ui
.
confirm
(
_
(
'
Would you like
to continue?'
)):
return
if
beremoved
:
...
...
inary/operations/install.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -81,7 +81,7 @@ def install_pkg_names(A, reinstall=False, extra=False):
extra_packages
=
set
(
order
)
-
A_0
if
extra_packages
:
if
not
ctx
.
ui
.
confirm
(
_
(
'There are extra packages due to dependencies.
Do you want
to continue?'
)):
if
not
ctx
.
ui
.
confirm
(
_
(
'There are extra packages due to dependencies.
Would you like
to continue?'
)):
return
False
ctx
.
ui
.
notify
(
ui
.
packagestogo
,
order
=
order
)
...
...
@@ -212,7 +212,7 @@ def install_pkg_files(package_URIs, reinstall=False):
ctx
.
ui
.
warning
(
_
(
"The following packages will be installed "
"in order to satisfy dependencies:"
))
ctx
.
ui
.
info
(
util
.
format_by_columns
(
sorted
(
extra_packages
)))
if
not
ctx
.
ui
.
confirm
(
_
(
'
Do you want
to continue?'
)):
if
not
ctx
.
ui
.
confirm
(
_
(
'
Would you like
to continue?'
)):
raise
Exception
(
_
(
'External dependencies not satisfied'
))
install_pkg_names
(
extra_packages
,
reinstall
=
True
,
extra
=
True
)
...
...
inary/operations/remove.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -80,7 +80,7 @@ def remove(A, ignore_dep=False, ignore_safety=False):
in the respective order to satisfy dependencies:"""
),
color
=
'green'
)
ctx
.
ui
.
info
(
util
.
strlist
(
order
))
if
len
(
order
)
>
len
(
A_0
):
if
not
ctx
.
ui
.
confirm
(
_
(
'Would you like to continue?
?
'
)):
if
not
ctx
.
ui
.
confirm
(
_
(
'Would you like to continue?'
)):
ctx
.
ui
.
warning
(
_
(
'Package removal declined'
))
return
False
...
...
inary/operations/upgrade.py
Dosyayı görüntüle @
eb017c9e
...
...
@@ -206,7 +206,7 @@ def upgrade(A=None, repo=None):
return
if
needs_confirm
and
\
not
ctx
.
ui
.
confirm
(
_
(
"
Do you want
to continue?"
)):
not
ctx
.
ui
.
confirm
(
_
(
"
Would you like
to continue?"
)):
return
False
ctx
.
ui
.
notify
(
ui
.
packagestogo
,
order
=
order
)
...
...
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