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
25c03b10
Kaydet (Commit)
25c03b10
authored
Tem 11, 2007
tarafından
İsmail Dönmez
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
these are needed
üst
029d1675
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
13 deletions
+21
-13
pisi-spec.dtd
pisi-spec.dtd
+10
-2
pisi-spec.rng
pisi-spec.rng
+0
-0
util.py
pisi/util.py
+11
-11
No files found.
pisi-spec.dtd
Dosyayı görüntüle @
25c03b10
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
RuntimeDependencies |
RuntimeDependencies |
Files |
Files |
Conflicts |
Conflicts |
Replaces |
AdditionalFiles |
AdditionalFiles |
Provides
Provides
)*>
)*>
...
@@ -90,6 +91,14 @@
...
@@ -90,6 +91,14 @@
<!-- we have a problem here, this Package tag only contains a package name
<!-- we have a problem here, this Package tag only contains a package name
while dtd treats this as another Package section, who said dtd doesnt
while dtd treats this as another Package section, who said dtd doesnt
suck anyway -->
suck anyway -->
<!ATTLIST Package versionFrom CDATA #IMPLIED>
<!ATTLIST Package versionTo CDATA #IMPLIED>
<!ATTLIST Package version CDATA #IMPLIED>
<!ATTLIST Package releaseFrom CDATA #IMPLIED>
<!ATTLIST Package releaseTo CDATA #IMPLIED>
<!ATTLIST Package release CDATA #IMPLIED>
<!ELEMENT Replaces (Package)+>
<!ELEMENT AdditionalFiles (AdditionalFile+)>
<!ELEMENT AdditionalFiles (AdditionalFile+)>
<!ELEMENT AdditionalFile (#PCDATA)>
<!ELEMENT AdditionalFile (#PCDATA)>
...
@@ -115,8 +124,7 @@ suck anyway -->
...
@@ -115,8 +124,7 @@ suck anyway -->
<!ELEMENT Update (#PCDATA | Date | Version | Comment | Name | Email)*>
<!ELEMENT Update (#PCDATA | Date | Version | Comment | Name | Email)*>
<!ATTLIST Update release CDATA #REQUIRED>
<!ATTLIST Update release CDATA #REQUIRED>
<!-- FIXME: valid types must be used instead of CDATA -->
<!ATTLIST Update type (security|bug) #IMPLIED>
<!ATTLIST Update type CDATA #IMPLIED>
<!ELEMENT Date (#PCDATA)>
<!ELEMENT Date (#PCDATA)>
<!ELEMENT Version (#PCDATA)>
<!ELEMENT Version (#PCDATA)>
...
...
pisi-spec.rng
0 → 100644
Dosyayı görüntüle @
25c03b10
This diff is collapsed.
Click to expand it.
pisi/util.py
Dosyayı görüntüle @
25c03b10
...
@@ -172,7 +172,7 @@ def xterm_title(message):
...
@@ -172,7 +172,7 @@ def xterm_title(message):
terminalType
=
os
.
environ
[
"TERM"
]
terminalType
=
os
.
environ
[
"TERM"
]
for
term
in
[
"xterm"
,
"Eterm"
,
"aterm"
,
"rxvt"
,
"screen"
,
"kterm"
,
"rxvt-unicode"
]:
for
term
in
[
"xterm"
,
"Eterm"
,
"aterm"
,
"rxvt"
,
"screen"
,
"kterm"
,
"rxvt-unicode"
]:
if
terminalType
.
startswith
(
term
):
if
terminalType
.
startswith
(
term
):
sys
.
stderr
.
write
(
"
\x1b
]2;"
+
str
(
message
)
+
"
\x07
"
)
sys
.
stderr
.
write
(
"
\x1b
]2;"
+
unicode
(
message
)
+
"
\x07
"
)
sys
.
stderr
.
flush
()
sys
.
stderr
.
flush
()
break
break
...
@@ -241,9 +241,9 @@ def absolute_path(path):
...
@@ -241,9 +241,9 @@ def absolute_path(path):
def
join_path
(
a
,
*
p
):
def
join_path
(
a
,
*
p
):
"""Join two or more pathname components.
"""Join two or more pathname components.
Python os.path.join cannot handle '/' at the start of latter components.
Python os.path.join cannot handle '/' at the start of latter components.
"""
"""
path
=
a
path
=
a
for
b
in
p
:
for
b
in
p
:
...
@@ -331,7 +331,7 @@ def clean_ar_timestamps(ar_file):
...
@@ -331,7 +331,7 @@ def clean_ar_timestamps(ar_file):
# an unrelated problem
# an unrelated problem
def
get_file_hashes
(
top
,
excludePrefix
=
None
,
removePrefix
=
None
):
def
get_file_hashes
(
top
,
excludePrefix
=
None
,
removePrefix
=
None
):
"""Iterate over given path and return a list of file hashes.
"""Iterate over given path and return a list of file hashes.
Generator function iterates over a toplevel path and returns the
Generator function iterates over a toplevel path and returns the
(filePath, sha1Hash) tuples for all files. If excludePrefixes list
(filePath, sha1Hash) tuples for all files. If excludePrefixes list
is given as a parameter, function will exclude the filePaths
is given as a parameter, function will exclude the filePaths
...
@@ -608,9 +608,9 @@ def package_name(name, version, release, build, prependSuffix=True):
...
@@ -608,9 +608,9 @@ def package_name(name, version, release, build, prependSuffix=True):
def
is_package_name
(
fn
,
package_name
=
None
):
def
is_package_name
(
fn
,
package_name
=
None
):
"""Check if fn is a valid filename for given package_name.
"""Check if fn is a valid filename for given package_name.
If not given a package name, see if fn fits the package name rules
If not given a package name, see if fn fits the package name rules
"""
"""
if
(
package_name
==
None
)
or
fn
.
startswith
(
package_name
+
'-'
):
if
(
package_name
==
None
)
or
fn
.
startswith
(
package_name
+
'-'
):
if
fn
.
endswith
(
ctx
.
const
.
package_suffix
):
if
fn
.
endswith
(
ctx
.
const
.
package_suffix
):
...
@@ -626,9 +626,9 @@ def is_package_name(fn, package_name = None):
...
@@ -626,9 +626,9 @@ def is_package_name(fn, package_name = None):
def
parse_package_name
(
package_name
):
def
parse_package_name
(
package_name
):
"""Separate package name and version string.
"""Separate package name and version string.
example: tasma-1.0.3-5-2 -> (tasma, 1.0.3-5-2)
example: tasma-1.0.3-5-2 -> (tasma, 1.0.3-5-2)
"""
"""
# We should handle package names like 855resolution
# We should handle package names like 855resolution
name
=
[]
name
=
[]
...
@@ -644,14 +644,14 @@ def parse_package_name(package_name):
...
@@ -644,14 +644,14 @@ def parse_package_name(package_name):
def
parse_delta_package_name
(
package_name
):
def
parse_delta_package_name
(
package_name
):
"""Separate delta package name and release infos
"""Separate delta package name and release infos
example: tasma-5-7.pisi.delta -> (tasma, 5, 7)
example: tasma-5-7.pisi.delta -> (tasma, 5, 7)
"""
"""
name
,
build
=
parse_package_name
(
package_name
)
name
,
build
=
parse_package_name
(
package_name
)
build
=
build
[:
-
len
(
ctx
.
const
.
delta_package_suffix
)]
build
=
build
[:
-
len
(
ctx
.
const
.
delta_package_suffix
)]
buildFrom
,
buildTo
=
build
.
split
(
"-"
)
buildFrom
,
buildTo
=
build
.
split
(
"-"
)
return
name
,
buildFrom
,
buildTo
return
name
,
buildFrom
,
buildTo
def
filter_latest_packages
(
package_paths
):
def
filter_latest_packages
(
package_paths
):
...
...
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