Add baseurl option to make_repo and actually set package urls

Also actually use said URL when calling 'install' operator
This commit is contained in:
Ellwood Zwovic
2017-07-14 00:56:34 -07:00
parent bbaa928c2b
commit fe7d38252d
2 changed files with 11 additions and 4 deletions

View File

@@ -408,7 +408,8 @@ class USERPREF_PT_packages(bpy.types.Panel):
lr1.label(text=pkg['bl_info'].get('name', "MISSING NAME"))
lr2.label(text=pkg['bl_info'].get('description', "MISSING DESCRIPTION"))
right.operator(BPKG_OT_install.bl_idname).package_url=""
right.operator(BPKG_OT_install.bl_idname,
text="Install").package_url=pkg.get('url', "")
for pkg in repo['packages']:
if filter_package(pkg):
@@ -434,7 +435,6 @@ class PackageManagerPreferences(bpy.types.AddonPreferences):
temp_box.label(text="Temporary stuff while we're developing")
temp_box.prop(self, 'repository_url')
temp_box.operator(BPKG_OT_refresh.bl_idname)
temp_box.operator(BPKG_OT_hang.bl_idname)
def register():