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
4008c469
Kaydet (Commit)
4008c469
authored
May 22, 2007
tarafından
S.Çağlar Onur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[merge] cleanup from -catbox branch/merge quilt support/merge catbox support
üst
383b6b06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
26 deletions
+28
-26
commands.py
pisi/cli/commands.py
+28
-26
No files found.
pisi/cli/commands.py
Dosyayı görüntüle @
4008c469
...
...
@@ -99,9 +99,9 @@ class Command(object):
@staticmethod
def
commands_string
():
s
=
''
l
ist
=
[
x
.
name
[
0
]
for
x
in
Command
.
cmd
]
l
ist
.
sort
()
for
name
in
l
ist
:
l
=
[
x
.
name
[
0
]
for
x
in
Command
.
cmd
]
l
.
sort
()
for
name
in
l
:
commandcls
=
Command
.
cmd_dict
[
name
]
trans
=
gettext
.
translation
(
'pisi'
,
fallback
=
True
)
summary
=
trans
.
ugettext
(
commandcls
.
__doc__
)
.
split
(
'
\n
'
)[
0
]
...
...
@@ -173,12 +173,12 @@ class Command(object):
# make destdir absolute
if
self
.
options
.
destdir
:
d
ir
=
str
(
self
.
options
.
destdir
)
d
=
str
(
self
.
options
.
destdir
)
import
os.path
if
not
os
.
path
.
exists
(
d
ir
):
pisi
.
cli
.
printu
(
_
(
'Destination directory
%
s does not exist. Creating directory.
\n
'
)
%
d
ir
)
os
.
makedirs
(
d
ir
)
self
.
options
.
destdir
=
os
.
path
.
realpath
(
d
ir
)
if
not
os
.
path
.
exists
(
d
):
pisi
.
cli
.
printu
(
_
(
'Destination directory
%
s does not exist. Creating directory.
\n
'
)
%
d
)
os
.
makedirs
(
d
)
self
.
options
.
destdir
=
os
.
path
.
realpath
(
d
)
def
check_auth_info
(
self
):
username
=
self
.
options
.
username
...
...
@@ -451,6 +451,10 @@ to be downloaded from a repository containing sources.
default
=
False
,
help
=
_
(
"Do not install build dependencies, fail if a build dependency is present"
))
group
.
add_option
(
"-F"
,
"--package-format"
,
action
=
"store"
,
default
=
'1.1'
,
help
=
_
(
"PiSi binary package formats: '1.0', '1.1' (default)"
))
group
.
add_option
(
"--use-quilt"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Use quilt patch management system instead of GNU patch"
))
group
.
add_option
(
"--ignore-sandbox"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Constrain build process inside the build folder"
))
def
add_steps_options
(
self
):
group
=
OptionGroup
(
self
.
parser
,
_
(
"build steps"
))
...
...
@@ -528,7 +532,7 @@ and creates a delta pisi package with the changed files between two releases.
self
.
init
(
database
=
False
,
write
=
False
)
if
len
(
self
.
args
)
is
not
2
:
if
len
(
self
.
args
)
!=
2
:
self
.
help
()
return
...
...
@@ -728,9 +732,9 @@ expanded to package names.
import
os
patterns
=
[]
f
ile
=
ctx
.
get_option
(
'exclude_from'
)
if
os
.
path
.
exists
(
f
ile
):
for
line
in
open
(
f
ile
,
"r"
)
.
readlines
():
f
=
ctx
.
get_option
(
'exclude_from'
)
if
os
.
path
.
exists
(
f
):
for
line
in
open
(
f
,
"r"
)
.
readlines
():
if
not
line
.
startswith
(
'#'
)
and
not
line
==
'
\n
'
:
patterns
.
append
(
line
.
strip
())
if
patterns
:
...
...
@@ -750,8 +754,8 @@ expanded to package names.
if
not
match
:
# match pattern in component names
for
c
mp
in
fnmatch
.
filter
(
ctx
.
componentdb
.
list_components
(),
pattern
):
packages
=
packages
-
set
(
ctx
.
componentdb
.
get_union_packages
(
c
mp
,
walk
=
True
))
for
c
ompare
in
fnmatch
.
filter
(
ctx
.
componentdb
.
list_components
(),
pattern
):
packages
=
packages
-
set
(
ctx
.
componentdb
.
get_union_packages
(
c
ompare
,
walk
=
True
))
return
list
(
packages
)
...
...
@@ -966,8 +970,6 @@ Usage: info <package1> <package2> ... <packagen>
ctx
.
ui
.
info
(
_
(
"
%
s is not installed"
)
%
arg
)
def
print_pkginfo
(
self
,
metadata
,
files
,
repo
=
None
):
import
os.path
if
ctx
.
get_option
(
'short'
):
pkg
=
metadata
.
package
ctx
.
ui
.
info
(
'
%15
s -
%
s'
%
(
pkg
.
name
,
unicode
(
pkg
.
summary
)))
...
...
@@ -1381,12 +1383,12 @@ all repositories.
component
=
ctx
.
get_option
(
'component'
)
if
component
:
l
ist
=
ctx
.
componentdb
.
get_packages
(
component
,
walk
=
True
,
repo
=
repo
)
l
=
ctx
.
componentdb
.
get_packages
(
component
,
walk
=
True
,
repo
=
repo
)
else
:
l
ist
=
ctx
.
packagedb
.
list_packages
(
repo
)
l
=
ctx
.
packagedb
.
list_packages
(
repo
)
installed_list
=
ctx
.
installdb
.
list_installed
()
l
ist
.
sort
()
for
p
in
l
ist
:
l
.
sort
()
for
p
in
l
:
package
=
ctx
.
packagedb
.
get_package
(
p
)
if
self
.
options
.
long
:
ctx
.
ui
.
info
(
unicode
(
package
))
...
...
@@ -1424,9 +1426,9 @@ repositories.
self
.
init
(
database
=
True
,
write
=
False
)
l
ist
=
ctx
.
componentdb
.
list_components
()
l
ist
.
sort
()
for
p
in
l
ist
:
l
=
ctx
.
componentdb
.
list_components
()
l
.
sort
()
for
p
in
l
:
component
=
ctx
.
componentdb
.
get_component
(
p
)
if
self
.
options
.
long
:
ctx
.
ui
.
info
(
unicode
(
component
))
...
...
@@ -1463,9 +1465,9 @@ Gives a brief list of sources published in the repositories.
self
.
init
(
database
=
True
,
write
=
False
)
l
ist
=
ctx
.
sourcedb
.
list
()
l
ist
.
sort
()
for
p
in
l
ist
:
l
=
ctx
.
sourcedb
.
list
()
l
.
sort
()
for
p
in
l
:
sf
,
repo
=
ctx
.
sourcedb
.
get_spec_repo
(
p
)
if
self
.
options
.
long
:
ctx
.
ui
.
info
(
'[Repository: '
+
repo
+
']'
)
...
...
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