projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa61219
)
Stop using hardcoded path, and make sure the dir exists before scanning it
author
Roland Mas
<lolando@debian.org>
Fri, 5 Jul 2013 13:03:58 +0000
(15:03 +0200)
committer
Roland Mas
<lolando@debian.org>
Fri, 5 Jul 2013 13:03:58 +0000
(15:03 +0200)
src/plugins/scmbzr/common/BzrPlugin.class.php
patch
|
blob
|
history
diff --git
a/src/plugins/scmbzr/common/BzrPlugin.class.php
b/src/plugins/scmbzr/common/BzrPlugin.class.php
index ee6327819e3e936334f9f486b9877620d7090208..92b66310357ec66f142db1c93e8588c4836ff41f 100644
(file)
--- a/
src/plugins/scmbzr/common/BzrPlugin.class.php
+++ b/
src/plugins/scmbzr/common/BzrPlugin.class.php
@@
-218,7
+218,11
@@
class BzrPlugin extends SCMPlugin {
function updateRepositoryList ($params) {
$groups = $this->getGroups () ;
- $dir = '/var/lib/gforge/plugins/scmbzr/public-repositories' ;
+ $dir = forge_get_config('data_path').'/plugins/scmbzr/public-repositories' ;
+
+ if (!is_dir($dir)) {
+ mkdir ($dir, 0644, true);
+ }
$oldlist = array () ;
$dh = opendir ($dir) ;