Lines Matching +full:q +full:- +full:touch
41 if ($this->cache) {
47 $idx_cache = new cache($this->getPluginName(), '.idx');
48 $pkg_cache = new cache($this->getPluginName(), '.txt');
49 $cache_exists = file_exists($pkg_cache->cache);
52 …if (!$cache_exists || !$idx_cache->useCache(array('age' => $conf['locktime'], 'files' => getConfig…
55 …$cache_ok = $cache_exists && filesize($pkg_cache->cache) && !preg_grep('/^error:/', file($pkg_cach…
59 $lines = $this->exec("--up");
61 // Writing /root/.poldek-cache/[...]/packages.ndir.gz...
65 $idx_cache->storeCache(time());
69 touch($idx_cache->cache);
74 // touch also package file, not to trigger it's update
75 touch($pkg_cache->cache);
82 …if (($force || !$cache_exists) && !$pkg_cache->useCache(array('files' => array($idx_cache->cache))…
83 $lines = $this->shcmd("ls", $rc);
86 $pkg_cache->storeCache(join("\n", $lines));
90 $this->cache = $pkg_cache->cache;
101 foreach (file($this->getCache()) as $line) {
102 …if (preg_match('/^(?P<name>.+)-(?P<version>[^-]+)-(?P<release>[^-]+)\.(?P<arch>[^.]+)$/', $line, $…
122 $this->sync();
123 return $this->cache;
130 return $this->exec('-q -Q --shcmd='.escapeshellarg($cmd), $rc);
139 $cachedir = $conf['cachedir'].'/'.$this->getPluginName();
142 $poldek = 'exec poldek --skip-installed --cachedir=' . escapeshellarg($cachedir);
146 $poldek .= ' --conf '.escapeshellarg($poldek_conf);
149 $repos = $this->getConf('repos');
151 $poldek .= ' --sn '.escapeshellarg(trim($repo));
155 $http_proxy = $this->getConf('http_proxy');
157 $poldek .= ' -O '.escapeshellarg("proxy=http: {$http_proxy}");
159 $ftp_proxy = $this->getConf('ftp_proxy');
161 $poldek.= ' -O '.escapeshellarg("proxy=ftp: {$ftp_proxy}");
171 //Setup VIM: ex: noet ts=4 enc=utf-8 :