On a freshly installed Aegir 3.x (from git) all packages show a version of 'Unknown'.
Tried creating a site and adding a module manually, while the version displays fine in the list of modules on that site, the same module's version appears as 'Unknown' on the hostmaster.

Tried digging around but I wasn't sure where the initial version value was being extracted from the .info file.

Any ideas on that?

Comments

ybabel’s picture

+1

ybabel’s picture

Solution : in platform/drupal/packages_7.inc
line 127 change by
if (!isset($info->version))
and line 160 add
$module->version = $module->info['version'];
and line 181 add
$theme->version = $theme->info['version'];

I'll publish a patch later.

PascalAnimateur’s picture

Status: Active » Closed (duplicate)

This works perfectly ! Remember to run the verify task to initially detect the versions.

I've created and submitted the patch here, closing this issue as duplicate since the patch applies to provision and not hosting.

helmo’s picture

ybabel’s picture

Ho ! wait ...
this morning I found that platforms have the same problem with versions of modules and themes set to Unknown

in file platform/drupal/packages_7.inc line 42 add
$files[$name]->version = $files[$name]->info['version'];

in file /platform/provision_drupal.drush.inc line 698 add (almost at the end of _provision_drupal_find_modules)
$files[$name]->version = $files[$name]->info['version'];