Changeset 3898 for lliurex-dpkg-provider
- Timestamp:
- Mar 10, 2017, 5:55:22 PM (4 years ago)
- Location:
- lliurex-dpkg-provider/trunk/fuentes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-dpkg-provider/trunk/fuentes/build.py
r3897 r3898 1 1 #!/usr/bin/env python 2 2 3 from jinja2 import Environment4 from jinja2.loaders import FileSystemLoader5 from jinja2 import Template6 3 import os 7 import random8 4 9 10 print random.random(),"!!!!!!!!!!!!!!!"11 5 curdir=os.path.abspath(".") 12 os.system("ls -la %s"%curdir)13 tpl_env = Environment(loader=FileSystemLoader(curdir+'/debian/'))14 15 control_template=tpl_env.get_template("control")16 6 17 7 vars={} … … 38 28 vars["DEPENDS"]+=p.strip("\n") 39 29 40 41 30 42 31 vars["CONFLICTS"]=vars["CONFLICTS"].rstrip(",") 43 vars["PROVIDES"]=vars["CONFLICTS"]44 32 vars["DEPENDS"]=vars["DEPENDS"].rstrip(",") 45 46 content=control_template.render(vars).encode("UTF-8")47 48 33 49 34 50 35 f=open(curdir+"/debian/substvars","w") 51 f.write("ll x:conflicts=%s \n"%vars["CONFLICTS"])52 f.write("ll x:provides=%s \n"%vars["CONFLICTS"])53 f.write("ll x:depends=%s \n"%vars["DEPENDS"])36 f.write("lliurex-dpkg-provider:Conflicts=%s \n"%vars["CONFLICTS"]) 37 f.write("lliurex-dpkg-provider:Provides=%s \n"%vars["CONFLICTS"]) 38 f.write("lliurex-dpkg-provider:Depends=%s \n"%vars["DEPENDS"]) 54 39 f.close() 55 40 … … 60 45 61 46 47 -
lliurex-dpkg-provider/trunk/fuentes/debian/control
r3897 r3898 9 9 Package: lliurex-dpkg-provider 10 10 Architecture: all 11 Conflicts: ${ll x:conflicts}12 Provides: ${ll x:provides}13 Depends: ${ll x:depends}11 Conflicts: ${lliurex-dpkg-provider:Conflicts} 12 Provides: ${lliurex-dpkg-provider:Provides} 13 Depends: ${lliurex-dpkg-provider:Depends} 14 14 Description: Lliurex Package Provider 15 15 This package foces other packages out without breaking any meta package. -
lliurex-dpkg-provider/trunk/fuentes/debian/rules
r3897 r3898 18 18 dh_auto_build 19 19 20 override_dh_gencontrol: 21 python $(CURDIR)/build.py 22 tree $(CURDIR) 23 dh_gencontrol -- -T$(CURDIR)/debian/substvars 24 cat $(CURDIR)/debian/substvars 25 26
Note: See TracChangeset
for help on using the changeset viewer.