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
e315270d
Kaydet (Commit)
e315270d
authored
Şub 10, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mmm. Inary ismini bir daha degistiren olursa!!!
üst
2850776b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
createrepo.py
tests/repos/createrepo.py
+7
-7
No files found.
tests/repos/createrepo.py
Dosyayı görüntüle @
e315270d
...
...
@@ -15,7 +15,7 @@ import shutil
import
time
pspecTemplate
=
"""<?xml version="1.0" ?>
<!DOCTYPE INARY SYSTEM "http://www.pardus.org.tr/projeler/
spam
/spam-spec.dtd">
<!DOCTYPE INARY SYSTEM "http://www.pardus.org.tr/projeler/
inary
/spam-spec.dtd">
<INARY>
<Source>
<Name>
%(package)
s</Name>
...
...
@@ -74,13 +74,13 @@ componentTemplate = """
"""
actionsTemplate
=
"""
from
spam
.actionsapi import spamtools
from
inary
.actionsapi import spamtools
WorkDir = "skeleton"
def install():
spam
tools.dobin("skeleton.py")
spam
tools.rename("/usr/bin/skeleton.py", "
%
s")
inary
tools.dobin("skeleton.py")
inary
tools.rename("/usr/bin/skeleton.py", "
%
s")
"""
distributionTemplate
=
"""
...
...
@@ -270,8 +270,8 @@ class BuildFarm:
def
create_index
(
self
,
repo
):
binrepo
=
"
%
s-bin"
%
repo
shutil
.
copy
(
"
%
s/distribution.xml"
%
repo
,
binrepo
)
os
.
system
(
"
spam
index
%
s --skip-signing -o
%
s/spam-index.xml"
%
(
repo
,
repo
))
os
.
system
(
"
spam
index --skip-sources --skip-signing -o
%
s/spam-index.xml
%
s
%
s"
%
(
binrepo
,
binrepo
,
repo
))
os
.
system
(
"
inary
index
%
s --skip-signing -o
%
s/spam-index.xml"
%
(
repo
,
repo
))
os
.
system
(
"
inary
index --skip-sources --skip-signing -o
%
s/spam-index.xml
%
s
%
s"
%
(
binrepo
,
binrepo
,
repo
))
def
build
(
self
,
repos
):
for
repo
in
repos
:
...
...
@@ -279,7 +279,7 @@ class BuildFarm:
os
.
mkdir
(
binrepo
)
for
root
,
dirs
,
files
in
os
.
walk
(
repo
):
if
"pspec.xml"
in
files
:
os
.
system
(
"
spam
build
%
s/
%
s -O
%
s"
%
(
root
,
"pspec.xml"
,
binrepo
))
os
.
system
(
"
inary
build
%
s/
%
s -O
%
s"
%
(
root
,
"pspec.xml"
,
binrepo
))
self
.
create_index
(
repo
)
if
__name__
==
"__main__"
:
...
...
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