Skip to content

New bundle version tracking overwrites files #6

Description

@vvidic

Bundle packages now (#5) use /var/lib/perfsonar/bundles/bundle_type and /var/lib/perfsonar/bundles/bundle_version files for storing current current bundle type and version. These files get overwritten in postinst scripts of respective packages, so the end result depends on the order the bundle packages are installed or reconfigured:

# grep . /var/lib/perfsonar/bundles -r
/var/lib/perfsonar/bundles/bundle_version:3.5-1+0~20151204120702.305~1.gbpf53833
/var/lib/perfsonar/bundles/bundle_type:perfsonar-core

# dpkg-reconfigure perfsonar-tools

# grep . /var/lib/perfsonar/bundles -r
/var/lib/perfsonar/bundles/bundle_version:3.5-1+0~20151204120702.305~1.gbpf53833
/var/lib/perfsonar/bundles/bundle_type:tools

Also the cleanup is not correct when the package is removed.

We could use a more complex but a stable system like this:

%post TestPoint
mkdir /var/lib/perfsonar/bundles/10_test-point
echo "%{version}" > /var/lib/perfsonar/bundles/10_test-point/version

%post Core
mkdir /var/lib/perfsonar/bundles/20_perfsonar-core
echo "%{version}" > /var/lib/perfsonar/bundles/20_perfsonar-core/version

%post Complete
mkdir /var/lib/perfsonar/bundles/30_perfsonar-complete
echo "%{version}" > /var/lib/perfsonar/bundles/30_perfsonar-complete/version

The code can than sort the directory names and read the appropriate version file.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status
Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions