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)
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
inary
Commits
7aa5b72a
Kaydet (Commit)
7aa5b72a
authored
Eki 15, 2009
tarafından
Faik Uygur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix with breakage with python 2.6
üst
aa33fae1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
package.py
pisi/scenarioapi/package.py
+11
-11
repoops.py
pisi/scenarioapi/repoops.py
+9
-9
withops.py
pisi/scenarioapi/withops.py
+2
-2
No files found.
pisi/scenarioapi/package.py
Dosyayı görüntüle @
7aa5b72a
...
...
@@ -69,21 +69,21 @@ class Package:
return
os
.
path
.
basename
(
found
[
0
])
def
version_bump
(
self
,
*
args
):
for
with
in
args
:
if
with
.
types
==
CONFLICT
and
with
.
action
==
ADDED
:
self
.
pspec
.
add_conflicts
(
with
.
data
)
for
_
with
in
args
:
if
_with
.
types
==
CONFLICT
and
_
with
.
action
==
ADDED
:
self
.
pspec
.
add_conflicts
(
_
with
.
data
)
if
with
.
types
==
CONFLICT
and
with
.
action
==
REMOVED
:
self
.
pspec
.
remove_conflicts
(
with
.
data
)
if
_with
.
types
==
CONFLICT
and
_
with
.
action
==
REMOVED
:
self
.
pspec
.
remove_conflicts
(
_
with
.
data
)
if
with
.
types
==
DEPENDENCY
and
with
.
action
==
ADDED
:
self
.
pspec
.
add_dependencies
(
with
.
data
)
if
_with
.
types
==
DEPENDENCY
and
_
with
.
action
==
ADDED
:
self
.
pspec
.
add_dependencies
(
_
with
.
data
)
if
with
.
types
==
DEPENDENCY
and
with
.
action
==
REMOVED
:
self
.
pspec
.
remove_dependencies
(
with
.
data
)
if
_with
.
types
==
DEPENDENCY
and
_
with
.
action
==
REMOVED
:
self
.
pspec
.
remove_dependencies
(
_
with
.
data
)
if
with
.
types
==
VERSION
and
with
.
action
==
INIT
:
self
.
version
=
with
.
data
if
_with
.
types
==
VERSION
and
_
with
.
action
==
INIT
:
self
.
version
=
_
with
.
data
self
.
pspec
.
update_history
(
self
.
date
,
self
.
version
)
self
.
actions
.
name
=
self
.
name
...
...
pisi/scenarioapi/repoops.py
Dosyayı görüntüle @
7aa5b72a
...
...
@@ -32,18 +32,18 @@ def repo_added_package(package, *args):
dependencies
=
[]
conflicts
=
[]
for
with
in
args
:
if
with
.
types
==
CONFLICT
and
with
.
action
==
INIT
:
conflicts
=
with
.
data
for
_
with
in
args
:
if
_with
.
types
==
CONFLICT
and
_
with
.
action
==
INIT
:
conflicts
=
_
with
.
data
if
with
.
types
==
DEPENDENCY
and
with
.
action
==
INIT
:
dependencies
=
with
.
data
if
_with
.
types
==
DEPENDENCY
and
_
with
.
action
==
INIT
:
dependencies
=
_
with
.
data
if
with
.
types
==
VERSION
and
with
.
action
==
INIT
:
version
=
with
.
data
if
_with
.
types
==
VERSION
and
_
with
.
action
==
INIT
:
version
=
_
with
.
data
if
with
.
types
==
PARTOF
and
with
.
action
==
INIT
:
partOf
=
with
.
data
if
_with
.
types
==
PARTOF
and
_
with
.
action
==
INIT
:
partOf
=
_
with
.
data
repodb
[
package
]
=
Package
(
package
,
dependencies
,
conflicts
,
ver
=
version
,
partOf
=
partOf
)
...
...
pisi/scenarioapi/withops.py
Dosyayı görüntüle @
7aa5b72a
...
...
@@ -14,12 +14,12 @@
ADDED
,
REMOVED
,
INIT
=
range
(
3
)
PARTOF
,
VERSION
,
CONFLICT
,
DEPENDENCY
=
range
(
4
)
class
w
ith
:
class
W
ith
:
def
__init__
(
self
):
pass
def
with_action
(
types
,
action
,
data
):
w
=
w
ith
()
w
=
W
ith
()
w
.
types
=
types
w
.
action
=
action
w
.
data
=
data
...
...
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