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
29ad0954
Kaydet (Commit)
29ad0954
authored
Eki 04, 2006
tarafından
Faik Uygur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* bypass_safety to ignore_safety for conveniency purpose.
üst
681be209
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
build.py
pisi/build.py
+1
-1
commands.py
pisi/cli/commands.py
+2
-2
operations.py
pisi/operations.py
+4
-4
No files found.
pisi/build.py
Dosyayı görüntüle @
29ad0954
...
...
@@ -406,7 +406,7 @@ class Builder:
build_deps
=
self
.
spec
.
source
.
buildDependencies
if
not
ctx
.
get_option
(
'
bypass
_safety'
):
if
not
ctx
.
get_option
(
'
ignore
_safety'
):
if
ctx
.
componentdb
.
has_component
(
'system.devel'
):
build_deps_names
=
set
([
x
.
package
for
x
in
build_deps
])
devel_deps_names
=
set
(
ctx
.
componentdb
.
get_component
(
'system.devel'
)
.
packages
)
...
...
pisi/cli/commands.py
Dosyayı görüntüle @
29ad0954
...
...
@@ -447,7 +447,7 @@ to be downloaded from a repository containing sources.
group
.
add_option
(
"--ignore-action-errors"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Bypass errors from ActionsAPI"
))
group
.
add_option
(
"--
bypass
-safety"
,
action
=
"store_true"
,
group
.
add_option
(
"--
ignore
-safety"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Bypass safety switch"
))
group
.
add_option
(
"--ignore-file-conflicts"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Ignore file conflicts"
))
...
...
@@ -554,7 +554,7 @@ class PackageOp(Command):
ignoredep_opt
(
self
,
group
)
group
.
add_option
(
"--ignore-comar"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Bypass comar configuration agent"
))
group
.
add_option
(
"--
bypass
-safety"
,
action
=
"store_true"
,
group
.
add_option
(
"--
ignore
-safety"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Bypass safety switch"
))
group
.
add_option
(
"-n"
,
"--dry-run"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Do not perform any action, just show what would be done"
))
...
...
pisi/operations.py
Dosyayı görüntüle @
29ad0954
...
...
@@ -245,7 +245,7 @@ def check_conflicts(order, packagedb):
if
not
ctx
.
ui
.
confirm
(
_
(
'Remove the following conflicting packages?'
)):
raise
Error
(
_
(
"Conflicts remain"
))
if
remove
(
list
(
C
),
ignore_dep
=
True
,
bypass
_safety
=
True
)
==
False
:
if
remove
(
list
(
C
),
ignore_dep
=
True
,
ignore
_safety
=
True
)
==
False
:
raise
Error
(
_
(
"Conflicts remain"
))
def
expand_components
(
A
):
...
...
@@ -272,7 +272,7 @@ def is_upgradable(name, ignore_build = False):
def
upgrade_base
(
A
=
set
()):
ignore_build
=
ctx
.
get_option
(
'ignore_build_no'
)
if
not
ctx
.
get_option
(
'
bypass
_safety'
):
if
not
ctx
.
get_option
(
'
ignore
_safety'
):
if
ctx
.
componentdb
.
has_component
(
'system.base'
):
systembase
=
set
(
ctx
.
componentdb
.
get_union_comp
(
'system.base'
)
.
packages
)
extra_installs
=
filter
(
lambda
x
:
not
ctx
.
installdb
.
is_installed
(
x
),
systembase
-
A
)
...
...
@@ -549,7 +549,7 @@ def plan_upgrade(A, ignore_build = False):
check_conflicts
(
order
,
ctx
.
packagedb
)
return
G_f
,
order
def
remove
(
A
,
ignore_dep
=
False
,
bypass
_safety
=
False
):
def
remove
(
A
,
ignore_dep
=
False
,
ignore
_safety
=
False
):
"""remove set A of packages from system (A is a list of package names)"""
A
=
[
str
(
x
)
for
x
in
A
]
...
...
@@ -557,7 +557,7 @@ def remove(A, ignore_dep = False, bypass_safety = False):
# filter packages that are not installed
A_0
=
A
=
expand_components
(
set
(
A
))
if
not
ctx
.
get_option
(
'
bypass_safety'
)
and
not
bypass
_safety
:
if
not
ctx
.
get_option
(
'
ignore_safety'
)
and
not
ignore
_safety
:
if
ctx
.
componentdb
.
has_component
(
'system.base'
):
systembase
=
set
(
ctx
.
componentdb
.
get_union_comp
(
'system.base'
)
.
packages
)
refused
=
A
.
intersection
(
systembase
)
...
...
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