Lines 58-64
_repo_base = os.path.join( _mirror_base, 'mirror', configRegistry.get( 'version/
|
Link Here
|
---|
|
58 |
|
58 |
|
59 |
def copy_repository( options, source, version ): |
59 |
def copy_repository( options, source, version ): |
60 |
""" Copy packages and scripts belonging to version from source directory into local repository """ |
60 |
""" Copy packages and scripts belonging to version from source directory into local repository """ |
61 |
print >>options.teefile, 'Copying packages. Please be patient ...', |
61 |
print >>options.teefile, 'Please be patient, copying packages ...', |
62 |
sys.stdout.flush() |
62 |
sys.stdout.flush() |
63 |
|
63 |
|
64 |
version = _exp_version.match( version ).groupdict() |
64 |
version = _exp_version.match( version ).groupdict() |
Lines 76-87
def copy_repository( options, source, version ):
|
Link Here
|
---|
|
76 |
urepo.copy_package_files( source, dest_repo ) |
76 |
urepo.copy_package_files( source, dest_repo ) |
77 |
|
77 |
|
78 |
# create Packages files |
78 |
# create Packages files |
|
|
79 |
print >>options.teefile, 'Packages ...', |
79 |
urepo.update_indexes( dest_repo ) |
80 |
urepo.update_indexes( dest_repo ) |
80 |
|
81 |
|
|
|
82 |
print >>options.teefile, 'Scripts ...', |
81 |
for script in ('preup.sh', 'postup.sh'): |
83 |
for script in ('preup.sh', 'postup.sh'): |
82 |
if os.path.exists(os.path.join(source, script)): |
84 |
if os.path.exists(os.path.join(source, script)): |
83 |
shutil.copy2(os.path.join(source, script), os.path.join(dest_repo, 'all', script)) |
85 |
shutil.copy2(os.path.join(source, script), os.path.join(dest_repo, 'all', script)) |
84 |
print >>sys.stdout |
86 |
print >>options.teefile, 'Done.' |
85 |
|
87 |
|
86 |
def update_cdrom( options ): |
88 |
def update_cdrom( options ): |
87 |
""" Copy repository from local DVD or ISO image """ |
89 |
""" Copy repository from local DVD or ISO image """ |