talimat.py
This commit is contained in:
parent
0a04ae28ea
commit
d3719344c1
1 changed files with 7 additions and 2 deletions
|
@ -96,18 +96,20 @@ class Talimat():
|
||||||
blok=False
|
blok=False
|
||||||
onblok=False
|
onblok=False
|
||||||
for satir in satirlar:
|
for satir in satirlar:
|
||||||
if "md5sums=(" in satir or "sha256sums=('":
|
if "md5sums=(" in satir or "sha256sums=('" in satir:
|
||||||
onblok=True
|
onblok=True
|
||||||
if onblok is True and "')" in satir:
|
if onblok is True and "')" in satir:
|
||||||
blok=True
|
blok=True
|
||||||
continue
|
continue
|
||||||
if blok and satir.rstrip()!="" and satir.rstrip()!="}":
|
if blok and satir.rstrip()!="" and satir.rstrip()!="}":
|
||||||
if (satir not in self.derleme) and ("pkgver()" not in satir) and ("prepare()" not in satir) and ("build()" not in satir) and ("package()" not in satir):
|
if (satir not in self.derleme) and ("pkgver()" not in satir) and ("prepare()" not in satir) and ("build()" not in satir) and ("package()" not in satir):
|
||||||
|
'''
|
||||||
satir=satir.replace("pkgdir","PKG")
|
satir=satir.replace("pkgdir","PKG")
|
||||||
satir=satir.replace("srcdir","SRC")
|
satir=satir.replace("srcdir","SRC")
|
||||||
satir=satir.replace("pkgname","name")
|
satir=satir.replace("pkgname","name")
|
||||||
satir=satir.replace("pkgver","version")
|
satir=satir.replace("pkgver","version")
|
||||||
satir=satir.replace("pkgrel","release")
|
satir=satir.replace("pkgrel","release")
|
||||||
|
'''
|
||||||
self.derleme+=satir+"\n"
|
self.derleme+=satir+"\n"
|
||||||
else:
|
else:
|
||||||
return "blok için gecersiz tip!"
|
return "blok için gecersiz tip!"
|
||||||
|
@ -302,6 +304,9 @@ class renk:
|
||||||
class Arge:
|
class Arge:
|
||||||
|
|
||||||
def indir(self,link):
|
def indir(self,link):
|
||||||
|
if "packages/" in link:
|
||||||
|
paket=link.split("?h=packages/")[1]
|
||||||
|
else:
|
||||||
paket=link.split("?h=")[1]
|
paket=link.split("?h=")[1]
|
||||||
print renk.tamamb+paket+" indiriliyor..."+renk.son
|
print renk.tamamb+paket+" indiriliyor..."+renk.son
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue