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
4996e645
Kaydet (Commit)
4996e645
authored
Şub 20, 2010
tarafından
Fatih Aşıcı
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rename Pspec.set_archive as Pspec.add_arrchive in scenario api.
This was broken by multiple Archive tag support.
üst
18ca225e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
package.py
pisi/scenarioapi/package.py
+1
-1
pspec.py
pisi/scenarioapi/pspec.py
+8
-5
No files found.
pisi/scenarioapi/package.py
Dosyayı görüntüle @
4996e645
...
...
@@ -43,7 +43,7 @@ class Package:
pspec
.
set_source
(
consts
.
homepage
,
consts
.
summary
%
self
.
name
,
consts
.
description
%
self
.
name
,
consts
.
license
,
self
.
partOf
)
pspec
.
set_packager
(
consts
.
packager_name
,
consts
.
packager_email
)
pspec
.
set
_archive
(
consts
.
skel_sha1sum
,
consts
.
skel_type
,
consts
.
skel_uri
)
pspec
.
add
_archive
(
consts
.
skel_sha1sum
,
consts
.
skel_type
,
consts
.
skel_uri
)
pspec
.
set_package
(
self
.
dependencies
,
self
.
conflicts
)
pspec
.
add_file_path
(
consts
.
skel_bindir
,
consts
.
skel_dirtype
)
pspec
.
set_history
(
self
.
date
,
self
.
version
)
...
...
pisi/scenarioapi/pspec.py
Dosyayı görüntüle @
4996e645
...
...
@@ -10,7 +10,7 @@
# Please read the COPYING file.
#
from
pisi.specfile
import
SpecFile
,
Package
,
Update
,
Path
,
Action
,
AnyDependency
from
pisi.specfile
import
SpecFile
,
Package
,
Update
,
Path
,
Action
,
A
rchive
,
A
nyDependency
from
pisi.dependency
import
Dependency
from
pisi.conflict
import
Conflict
from
pisi.pxml.autoxml
import
LocalText
...
...
@@ -124,10 +124,13 @@ class Pspec:
self
.
update
.
name
=
unicode
(
name
)
self
.
update
.
email
=
email
def
set_archive
(
self
,
sha1sum
,
type
,
uri
):
self
.
pspec
.
source
.
archive
.
sha1sum
=
sha1sum
self
.
pspec
.
source
.
archive
.
type
=
type
self
.
pspec
.
source
.
archive
.
uri
=
uri
def
add_archive
(
self
,
sha1sum
,
type
,
uri
):
archive
=
Archive
()
archive
.
sha1sum
=
sha1sum
archive
.
type
=
type
archive
.
uri
=
uri
self
.
pspec
.
source
.
archive
.
append
(
archive
)
def
add_file_path
(
self
,
path
,
type
):
p
=
Path
()
...
...
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