Bug 12566 - [AUH] 'tmp' dir is hard-coded
Summary: [AUH] 'tmp' dir is hard-coded
Status: RESOLVED FIXED
Alias: None
Product: Automated Update Handler
Classification: Yocto Project Subprojects
Component: Automatic Update Handler (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: High normal
Target Milestone: 2.5 M4
Assignee: Alexander Kanavin
QA Contact: apoorv sangal
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-02-22 04:58 UTC by Tim Orling
Modified: 2018-03-01 14:40 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Orling 2018-02-22 04:58:43 UTC
auto-upgrade-helper/upgradehelper.py has ‘tmp’ hard coded, but my tmpdir might actually be ‘tmp-glibc’ for instance. This leads to the following error:

INFO: Fetching upstream version(s) ...

Traceback (most recent call last):
  File "../auto-upgrade-helper/upgradehelper.py", line 788, in <module>
    updater.run()
  File "../auto-upgrade-helper/upgradehelper.py", line 745, in run
    super(UniverseUpdater, self).run()
  File "../auto-upgrade-helper/upgradehelper.py", line 412, in run
    pkgs_to_upgrade = self._get_packages_to_upgrade(package_list)
  File "../auto-upgrade-helper/upgradehelper.py", line 717, in _get_packages_to_upgrade
    for pkg in self._parse_checkpkg_file(last_checkpkg_file):
  File "../auto-upgrade-helper/upgradehelper.py", line 632, in _parse_checkpkg_file
    with open(file_path, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/jenkins/workspace/meta-perl-auto-upgrade-helper/build-auh/tmp/log/checkpkg.csv’

Is there a way to make AUH more flexible?
Comment 1 Armin Kuster 2018-02-22 15:53:56 UTC
I have seen this too.
Comment 2 Alexander Kanavin 2018-02-27 13:03:19 UTC
I think this should be possible to fix, as AUH does have facility to get variable assignments out of bitbake.