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
28d989e0
Kaydet (Commit)
28d989e0
authored
Eki 12, 2006
tarafından
S.Çağlar Onur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove unneeded and move repo script into repo script dir
üst
30405527
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
95 deletions
+0
-95
check-source-repo.py
scripts/check-source-repo.py
+0
-32
fetchAll.py
scripts/fetchAll.py
+0
-63
No files found.
scripts/check-source-repo.py
deleted
100755 → 0
Dosyayı görüntüle @
30405527
#! /usr/bin/python
# a simple tool to list stuff in source repository
# author: exa
import
sys
import
os
import
pisi
import
pisi.api
import
pisi.config
import
pisi.specfile
as
specfile
import
pisi.context
as
ctx
import
pisi.util
options
=
pisi
.
config
.
Options
()
if
len
(
sys
.
argv
)
>
2
:
options
.
destdir
=
sys
.
argv
[
2
]
else
:
options
.
destdir
=
'/'
pisi
.
api
.
init
(
database
=
False
,
options
=
options
)
repo_uri
=
sys
.
argv
[
1
]
for
root
,
dirs
,
files
in
os
.
walk
(
repo_uri
):
for
fn
in
files
:
if
fn
==
'pspec.xml'
:
#ctx.ui.info(_('Adding %s to package index') % fn)
sf
=
specfile
.
SpecFile
()
sf
.
read
(
pisi
.
util
.
join_path
(
root
,
fn
))
sf
.
check
()
print
'
%
s:
%
s'
%
(
sf
.
source
.
name
,
sf
.
source
.
version
)
pisi
.
api
.
finalize
()
scripts/fetchAll.py
deleted
100755 → 0
Dosyayı görüntüle @
30405527
#!/usr/bin/python
#
# Copyright (C) 2005, TUBITAK/UEKAE
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
import
os
import
sys
sys
.
path
.
append
(
'.'
)
import
pisi.api
import
pisi.uri
import
pisi.context
as
ctx
import
pisi.specfile
import
pisi.util
as
util
from
pisi.fetcher
import
fetch_url
def
scanPSPEC
(
folder
):
packages
=
[]
for
root
,
dirs
,
files
in
os
.
walk
(
folder
):
if
"pspec.xml"
in
files
:
packages
.
append
(
root
)
# dont walk into the versioned stuff
if
".svn"
in
dirs
:
dirs
.
remove
(
".svn"
)
return
packages
def
isCached
(
file
,
sha1sum
):
try
:
return
util
.
check_file_hash
(
os
.
path
.
join
(
ctx
.
config
.
archives_dir
(),
file
),
sha1sum
)
except
:
pass
if
__name__
==
"__main__"
:
pisi
.
api
.
init
(
database
=
False
,
options
=
''
)
try
:
packages
=
scanPSPEC
(
sys
.
argv
[
1
])
except
:
print
"Usage: fetchAll.py path2repo"
sys
.
exit
(
1
)
for
package
in
packages
:
spec
=
pisi
.
specfile
.
SpecFile
()
spec
.
read
(
os
.
path
.
join
(
package
,
"pspec.xml"
))
URI
=
pisi
.
uri
.
URI
(
spec
.
source
.
archive
.
uri
)
if
not
isCached
(
URI
.
filename
(),
spec
.
source
.
archive
.
sha1sum
):
print
URI
,
" -> "
,
os
.
path
.
join
(
ctx
.
config
.
archives_dir
(),
URI
.
filename
())
try
:
fetch_url
(
URI
,
ctx
.
config
.
archives_dir
())
except
pisi
.
fetcher
.
FetchError
,
e
:
print
e
pass
else
:
print
URI
,
"already downloaded..."
pisi
.
api
.
finalize
()
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