Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
86a5caeb4c
|
@ -120,6 +120,8 @@ class ApiController extends Zend_Controller_Action
|
||||||
if ($media != null) {
|
if ($media != null) {
|
||||||
|
|
||||||
$filepath = $media->getFilePath();
|
$filepath = $media->getFilePath();
|
||||||
|
// Make sure we don't have some wrong result beecause of caching
|
||||||
|
clearstatcache();
|
||||||
if (is_file($filepath)) {
|
if (is_file($filepath)) {
|
||||||
$full_path = $media->getPropelOrm()->getDbFilepath();
|
$full_path = $media->getPropelOrm()->getDbFilepath();
|
||||||
|
|
||||||
|
@ -468,8 +470,8 @@ class ApiController extends Zend_Controller_Action
|
||||||
// Replace this compound result in a hash with proper error handling later on
|
// Replace this compound result in a hash with proper error handling later on
|
||||||
$return_hash = array();
|
$return_hash = array();
|
||||||
Application_Model_Preference::SetImportTimestamp();
|
Application_Model_Preference::SetImportTimestamp();
|
||||||
Logging::info("--->Mode: $mode || file: {$md['MDATA_KEY_FILEPATH']} ");
|
//Logging::info("--->Mode: $mode || file: {$md['MDATA_KEY_FILEPATH']} ");
|
||||||
Logging::info( $md );
|
//Logging::info( $md );
|
||||||
if ($mode == "create") {
|
if ($mode == "create") {
|
||||||
$filepath = $md['MDATA_KEY_FILEPATH'];
|
$filepath = $md['MDATA_KEY_FILEPATH'];
|
||||||
$filepath = Application_Common_OsPath::normpath($filepath);
|
$filepath = Application_Common_OsPath::normpath($filepath);
|
||||||
|
|
|
@ -496,7 +496,7 @@ def toposort(data):
|
||||||
for k, v in data.items():
|
for k, v in data.items():
|
||||||
v.discard(k) # Ignore self dependencies
|
v.discard(k) # Ignore self dependencies
|
||||||
extra_items_in_deps = reduce(set.union, data.values()) - set(data.keys())
|
extra_items_in_deps = reduce(set.union, data.values()) - set(data.keys())
|
||||||
data.update({item:set() for item in extra_items_in_deps})
|
data.update(dict((item,set()) for item in extra_items_in_deps))
|
||||||
while True:
|
while True:
|
||||||
ordered = set(item for item,dep in data.items() if not dep)
|
ordered = set(item for item,dep in data.items() if not dep)
|
||||||
if not ordered: break
|
if not ordered: break
|
||||||
|
|
Loading…
Reference in New Issue