Pitney_b: Hi I'm using Kalanyr's working2 gogrepo and getting the following errors when using verify, import and backup
PS D:\GOGInstall> D:\python27\python.exe gogrepo.py verify D:\GOGInstall | tee postVerify.txt
08:36:17 | loading local manifest...
08:36:17 | verifying all known files in the manifest
08:36:17 | verifying ad_2044\setup_ad2044_1.0_(15637).exe...
08:36:23 | fatal...
Traceback (most recent call last):
File "gogrepo.py", line 1727, in <module>
main(process_argv(sys.argv))
File "gogrepo.py", line 1700, in main
cmd_verify(args.gamedir, args.skipextras,args.skipids,check_md5, check_filesize, check_zips, args.delete, args.clean,args.ids, args.os, args.lang,args.skipgalaxy,args.skipstandalone,args.skipshared)
File "gogrepo.py", line 1536, in cmd_verify
handle_game_updates(items[item_idx], item)
NameError: global name 'item' is not defined
PS D:\GOGInstall> D:\python27\python.exe gogrepo.py import F:\GOGInstall D:\GOGInstall
07:54:07 | loading local manifest...
07:54:07 | collecting md5 data out of the manifest
07:54:07 | fatal...
Traceback (most recent call last):
File "gogrepo.py", line 1727, in <module>
main(process_argv(sys.argv))
File "gogrepo.py", line 1679, in main
cmd_import(args.src_dir, args.dest_dir,args.os,args.lang,args.skipextras,args.skipids,args.ids,args.skipgalaxy,args.skipstandalone,args .skipshared)
File "gogrepo.py", line 984, in cmd_import
_ = item.galaxyDownloads
NameError: global name 'item' is not defined
07:51:51 | fatal...
Traceback (most recent call last):
File "gogrepo.py", line 1727, in <module>
main(process_argv(sys.argv))
File "gogrepo.py", line 1716, in main
cmd_backup(args.src_dir, args.dest_dir,args.skipextras,args.os,args.lang,args.ids,args.skipids,args.skipgalaxy,args.skipstandalone,args .skipshared)
AttributeError: 'Namespace' object has no attribute 'ids'
Everything else appears tto be working fine. I have tried this under python2 and 3 with the same results. The errors with backup and import were present on the previous build.
Thanks for the report, I appreciate them.
Going to sleep for a bit but I'll look into it when I get back.
Eta- The verify thing is me missing the need to adjust to a slightly different variable name for a new context, as is import. Those are easy to fix. I've already fixed them locally.
Backup looks like I decided to add a new filtering condition and then completely forgot to add it to the parser, I'm afraid that one will have to wait until I'm awake enough to give proper attention to the code path and make sure everything does work properly.