Changeset 3898


Ignore:
Timestamp:
Mar 10, 2017, 5:55:22 PM (2 years ago)
Author:
hectorgh
Message:

wip

Location:
lliurex-dpkg-provider/trunk/fuentes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lliurex-dpkg-provider/trunk/fuentes/build.py

    r3897 r3898  
    11#!/usr/bin/env python
    22
    3 from jinja2 import Environment
    4 from jinja2.loaders import FileSystemLoader
    5 from jinja2 import Template
    63import os
    7 import random
    84
    9 
    10 print random.random(),"!!!!!!!!!!!!!!!"
    115curdir=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")
    166
    177vars={}
     
    3828                vars["DEPENDS"]+=p.strip("\n")
    3929               
    40 
    4130       
    4231vars["CONFLICTS"]=vars["CONFLICTS"].rstrip(",")
    43 vars["PROVIDES"]=vars["CONFLICTS"]
    4432vars["DEPENDS"]=vars["DEPENDS"].rstrip(",")
    45 
    46 content=control_template.render(vars).encode("UTF-8")
    47 
    4833
    4934
    5035f=open(curdir+"/debian/substvars","w")
    51 f.write("llx:conflicts=%s \n"%vars["CONFLICTS"])
    52 f.write("llx:provides=%s \n"%vars["CONFLICTS"])
    53 f.write("llx:depends=%s \n"%vars["DEPENDS"])
     36f.write("lliurex-dpkg-provider:Conflicts=%s \n"%vars["CONFLICTS"])
     37f.write("lliurex-dpkg-provider:Provides=%s \n"%vars["CONFLICTS"])
     38f.write("lliurex-dpkg-provider:Depends=%s \n"%vars["DEPENDS"])
    5439f.close()
    5540
     
    6045
    6146
     47
  • lliurex-dpkg-provider/trunk/fuentes/debian/control

    r3897 r3898  
    99Package: lliurex-dpkg-provider
    1010Architecture: all
    11 Conflicts: ${llx:conflicts}
    12 Provides: ${llx:provides}
    13 Depends: ${llx:depends}
     11Conflicts: ${lliurex-dpkg-provider:Conflicts}
     12Provides: ${lliurex-dpkg-provider:Provides}
     13Depends: ${lliurex-dpkg-provider:Depends}
    1414Description:  Lliurex Package Provider
    1515 This package foces other packages out without breaking any meta package.
  • lliurex-dpkg-provider/trunk/fuentes/debian/rules

    r3897 r3898  
    1818        dh_auto_build
    1919
     20override_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.