Codebase list debian-goodies / 28efbbc
Block and wait until the dpkg query process has finished Javier Fernandez-Sanguino 12 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
152152 dpkgQuery = ["dpkg-query", "--search"] + programs.keys()
153153 dpkgProc = subprocess.Popen(dpkgQuery, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
154154 env = lc_all_c_env)
155 dpkgProc.wait()
155156 if verbose:
156157 print "Running:%s" % dpkgQuery
157158 for line in dpkgProc.stdout.readlines():
190191 dpkgQuery = ["dpkg-query", "--listfiles", package.name]
191192 dpkgProc = subprocess.Popen(dpkgQuery, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
192193 env = lc_all_c_env)
194 dpkgProc.wait()
193195 for line in dpkgProc.stdout.readlines():
194196 path = line[:-1]
195197 if path.startswith('/etc/init.d/'):