Bug 13131 - update script fails
Summary: update script fails
Status: RESOLVED FIXED
Alias: None
Product: Security Response Tool
Classification: Yocto Project Subprojects
Component: General (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.7 M2
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-01-10 14:24 UTC by Ross Burton
Modified: 2019-01-22 21:12 UTC (History)
0 users

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 Ross Burton 2019-01-10 14:24:55 UTC
ross@flashheart ~/Yocto/srtool (ross %)
$ ./bin/common/srtool_utils.py  -U
Traceback (most recent call last):
  File "./bin/common/srtool_utils.py", line 651, in <module>
    main(sys.argv[1:])
  File "./bin/common/srtool_utils.py", line 578, in main
    master_log = open(os.path.join(script_pathname, "update_logs/master_log.txt"), "a")
FileNotFoundError: [Errno 2] No such file or directory: '/home/ross/Yocto/srtool/bin/update_logs/master_log.txt'

(that file is at /home/ross/Yocto/srtool/update_logs/master_log.txt)
Comment 1 David Reyna 2019-01-11 19:30:43 UTC
I am in fact working on updating this tool this week (plus the backup/restore scripts). I should have it ready by early next week.
Comment 2 David Reyna 2019-01-14 23:48:06 UTC
commit 959cc8196aab2231b7f6f05c7e0151f8de46ea48
Author: David Reyna <David.Reyna@windriver.com>
Date:   Mon Jan 14 15:04:36 2019 -0800

    srtool: complete auto-update support
    
    Complete the support for backgroup data source updates:
      * Add cron-start,cron-stop to srtool_update
      * Have cron update run as a user space script to avoid sudo
      * Hook cron-start,cron-stop into srt start,stop
      * Add list command to show update sources
      * Have force command propagate to update script calls, and
        add force option to all source scripts
      * Add 'srt manage update ...' for user access to the update functions
      * Add flag SRT_SKIP_AUTOUPDATE and srt option noautoupdate to
        disable the automatic update app for development assistance

Documentation will be added soon.
Comment 3 David Reyna 2019-01-15 05:13:27 UTC
Documentation can be found here:

  https://wiki.yoctoproject.org/wiki/SRTool_Developer_Page#Automatic_and_manual_data_source_updates