Bug 12566

Summary: [AUH] 'tmp' dir is hard-coded
Product: [Yocto Project Subprojects] Automated Update Handler Reporter: Tim Orling <tim.orling>
Component: Automatic Update HandlerAssignee: Alexander Kanavin <alex.kanavin>
Status: RESOLVED FIXED QA Contact: apoorv sangal <apoorvsangal>
Severity: normal    
Priority: High CC: akuster, stephano
Version: 2.5   
Target Milestone: 2.5 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.