Changeset 1006 for trunk/base
- Timestamp:
- Oct 9, 2002, 7:06:24 AM (22 years ago)
- Location:
- trunk/base/src/port1.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port1.0/portinstall.tcl
r951 r1006 46 46 47 47 proc install_main {args} { 48 global portname portversion portpath categories description depends_run contents pkg_install pkg_deinstallworkdir worksrcdir prefix build.type build.cmd build.target.install UI_PREFIX build.target.current48 global portname portversion portpath categories description depends_run contents workdir worksrcdir prefix build.type build.cmd build.target.install UI_PREFIX build.target.current 49 49 50 50 if ![file exists $prefix] { -
trunk/base/src/port1.0/portregistry.tcl
r905 r1006 39 39 40 40 # define options 41 options contents long -description description registry.nochecksum registry.path registry.nobzip registry.contents_recurse41 options contents long_description description registry.nochecksum registry.path registry.nobzip registry.contents_recurse 42 42 43 43 # Export options via PortInfo 44 options_export description long -description44 options_export description long_description 45 45 46 46 default registry.path {[file join ${portdbpath} receipts]} … … 201 201 202 202 proc registry_main {args} { 203 global portname portversion portpath categories description depends_run contents pkg_install pkg_deinstall workdir worksrcdir prefix UI_PREFIX203 global portname portversion portpath categories description long_description depends_run contents package-install uninstall workdir worksrcdir prefix UI_PREFIX 204 204 205 205 # Package installed successfully, so now we must register it 206 206 set rhandle [registry_new $portname $portversion] 207 207 ui_msg "$UI_PREFIX Adding $portname to registry, this may take a moment..." 208 208 209 registry_store $rhandle [list prefix $prefix] 209 210 registry_store $rhandle [list categories $categories] … … 211 212 registry_store $rhandle [concat description $description] 212 213 } 214 if [info exists long_description] { 215 registry_store $rhandle [concat long_description ${long_description}] 216 } 213 217 if [info exists depends_run] { 214 218 registry_store $rhandle [list run_depends $depends_run] 219 } 220 if [info exists package-install] { 221 registry_store $rhandle [concat package-install ${package-install}] 215 222 } 216 223 if [info exists contents] { … … 223 230 registry_store $rhandle $x 224 231 } 225 if {[info proc pkg_install] == "pkg_install"} { 226 registry_store $rhandle [list pkg_install [proc_disasm pkg_install]] 227 } 228 if {[info proc pkg_uninstall] == "pkg_uninstall"} { 229 registry_store $rhandle [list pkg_uninstall [proc_disasm pkg_uninstall]] 232 if {[info proc uninstall] == "uninstall"} { 233 registry_store $rhandle [list uninstall [proc_disasm uninstall]] 230 234 } 231 235 registry_close $rhandle
Note: See TracChangeset
for help on using the changeset viewer.