source: lliurex-dpkg-provider/trunk/fuentes/build_control.py @ 3906

Last change on this file since 3906 was 3906, checked in by hectorgh, 2 years ago

wip

  • Property svn:executable set to *
File size: 741 bytes
Line 
1#!/usr/bin/env python
2
3import os
4
5curdir=os.path.abspath(".")
6
7vars={}
8
9vars["CONFLICTS"]=""
10vars["DEPENDS"]=""
11vars["PROVIDES"]=""
12
13f=open("lists/conflicts")
14lines=f.readlines()
15f.close()
16
17for p in lines:
18        if len(p)>0:
19                vars["CONFLICTS"]+=p.strip("\n")+", "
20               
21
22f=open("lists/depends")
23lines=f.readlines()
24f.close()
25
26for p in lines:
27        if len(p)>0:
28                vars["DEPENDS"]+=p.strip("\n")+", "
29               
30       
31vars["CONFLICTS"]=vars["CONFLICTS"].rstrip(", ")
32vars["DEPENDS"]=vars["DEPENDS"].rstrip(", ")
33
34
35f=open(curdir+"/debian/substvars","w")
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"])
39f.close()
40
41
42
43
44
45
46
47
Note: See TracBrowser for help on using the repository browser.