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
8f16b9d7
Kaydet (Commit)
8f16b9d7
authored
Agu 09, 2019
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Renkler geri alındı.
üst
01f418c1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
17 deletions
+8
-17
conflict.py
inary/analyzer/conflict.py
+2
-1
archive.py
inary/archive.py
+5
-7
constants.py
inary/constants.py
+0
-8
upgrade.py
inary/operations/upgrade.py
+1
-1
No files found.
inary/analyzer/conflict.py
Dosyayı görüntüle @
8f16b9d7
...
...
@@ -59,7 +59,8 @@ def package_conflicts(pkg, confs):
def
calculate_conflicts
(
order
,
packagedb
):
"""
Return a tuple of the conflicting packages information -> tuple
@param packages: list of package names -> list_of_strings
@param order: list of package names -> list_of_strings
@param packagedb: package database
"""
# check conflicting packages in the installed system
...
...
inary/archive.py
Dosyayı görüntüle @
8f16b9d7
...
...
@@ -171,14 +171,13 @@ class ArchiveBase(object):
self
.
type
=
atype
def
unpack
(
self
,
target_dir
,
clean_dir
=
False
):
self
.
target_dir
=
target_dir
# first we check if we need to clean-up our working env.
if
os
.
path
.
exists
(
self
.
target_dir
):
if
os
.
path
.
exists
(
target_dir
):
if
clean_dir
:
util
.
clean_dir
(
self
.
target_dir
)
util
.
clean_dir
(
target_dir
)
if
not
os
.
path
.
exists
(
self
.
target_dir
):
os
.
makedirs
(
self
.
target_dir
)
if
not
os
.
path
.
exists
(
target_dir
):
os
.
makedirs
(
target_dir
)
class
ArchiveBinary
(
ArchiveBase
):
...
...
@@ -865,13 +864,12 @@ class SourceArchive:
self
.
url
=
inary
.
uri
.
URI
(
archive
.
uri
)
self
.
archiveFile
=
os
.
path
.
join
(
ctx
.
config
.
archives_dir
(),
self
.
url
.
filename
())
self
.
archive
=
archive
self
.
progress
=
None
def
fetch
(
self
,
interactive
=
True
):
if
not
self
.
is_cached
(
interactive
):
if
interactive
:
self
.
progress
=
ctx
.
ui
.
Progress
else
:
self
.
progress
=
None
try
:
ctx
.
ui
.
info
(
_
(
"Fetching source from: {}"
)
.
format
(
self
.
url
.
uri
))
...
...
inary/constants.py
Dosyayı görüntüle @
8f16b9d7
...
...
@@ -157,14 +157,6 @@ class Constants(metaclass=Singleton):
'brightmagenta'
:
"
\033
[01;35m"
,
'brightcyan'
:
"
\033
[01;36m"
,
'brightwhite'
:
"
\033
[01;37m"
,
'backgroundblack'
:
"
\033
[01;40m"
,
'backgroundred'
:
"
\033
[01;41m"
,
'backgroundgreen'
:
"
\033
[01;42m"
,
'backgroundyellow'
:
"
\033
[01;43m"
,
'backgroundblue'
:
"
\033
[01;44m"
,
'backgroundmagenta'
:
"
\033
[01;45m"
,
'backgroundcyan'
:
"
\033
[01;46m"
,
'backgroundwhite'
:
"
\033
[01;47m"
,
'faintblack'
:
"
\033
[02;30m"
,
'faintred'
:
"
\033
[02;31m"
,
'faintgreen'
:
"
\033
[02;32m"
,
...
...
inary/operations/upgrade.py
Dosyayı görüntüle @
8f16b9d7
...
...
@@ -132,7 +132,7 @@ def upgrade(A=None, repo=None):
a minimum or maximum number of upgrades according to options.
Upgrades the given packages, if no package given upgrades all the packages
@param
packages (A)
: list of package names -> list_of_strings
@param
A
: list of package names -> list_of_strings
@param repo: name of the repository that only the packages from that repo going to be upgraded
"""
if
A
is
None
:
...
...
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