[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: copying cds on harddrive



* Philippe Gendreau <philippe gendreau savoirfairelinux com> [2002-08-03 19:32]:
> Hi,
> I'm trying to get the installer to copy the cds on the hard drive
> while doing the installation of the packages.
> 
> I am wondering how I can do this with the busybox cpio.
> There is no -p option in this version, it seems only made
> to extract (no -o either; Usage: cpio -[dimtuv][F cpiofile]).

cdrom = ...
cddir = ...

cmd = "(cd %s; tar cvO .; cd -) |(cd %s; tar xvf -; cd -)" % (cdrom, cddir)

try:
    os.system(cmd)
except:
    pass

--
Philippe Gendreau





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]