WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: One command update of the sce directory.  (Read 21298 times)

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: One command update of the sce directory.
« Reply #45 on: November 19, 2014, 01:32:22 AM »
hi jason,

i could help me with backups :)

the last cut breaks for the reason that firmware-all.tar.gz seems to have no md5sum stored at the server?

...
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum failed for firmware-all.tar.gz, exiting..
tc@box:~$

thank you for all your contributions.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #46 on: November 19, 2014, 06:56:08 AM »
Thanks, I added a check for that in.

I am almost there, I will polish and test it tonight and use it a day or so to make sure things are ok, I should upload by sometime Thurs.


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #47 on: November 19, 2014, 10:23:16 PM »
Much progress in the migration from tinycorelinux/5.x to tinycorelinux/dCore.  That part should be not noticable to the user. 

Also, finishing testing of the importsce routine as it relates to the recent changes and improvements.  Reliability and speed improvements have been worked in. 

Plan is to release tomorrow (Thurs) and also create the stable and testing versions of all the dCore x86 ports.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #48 on: November 20, 2014, 08:51:57 AM »
Ok, fix uploaded in the release candidates area.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: One command update of the sce directory.
« Reply #49 on: November 22, 2014, 09:42:43 PM »
Hi
importsce reports wrong file system space:
Code: [Select]
Determining HD and RAM space needed..
 
0.00 MB of downloads required.
117.10 MB needed for unpacking archives.
43.74 MB of compressed archives will be used.
 
204.59 MB is a good estimate of /mnt/sda1/tce space needed, 0.00 MB is available.
 
 
WARNING: You do not have enough /mnt/sda1/tce space, you should not proceed.
The above errors have occured. Do you wish to continue
while
Code: [Select]
jls@portatile:/mnt/sda1/tce/sce$ df /mnt/sda1
Sys. fich.     Taille Util. Dispo Uti% Monté sur
/dev/sda1        8,6G  7,8G  767M  92% /mnt/sda1
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #50 on: November 23, 2014, 03:13:18 AM »
What package are you importing?

And is it a file list?  if so, what are the contents of the list?

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: One command update of the sce directory.
« Reply #51 on: November 23, 2014, 05:31:36 AM »
I'm importing base which contains:
Code: [Select]
base-locale
alsa-modules-3.8.13-tinycore
alsa-utils
graphics-3.8.13-tinycore
i2c-3.8.13-tinycore
Xprogs
vim
util-linux-locales
xorg-trident
wireless-tools
wireless-3.8.13-tinycore
After the update I've rebooted and did another updatesce to the same package and it was re-imported, even no package changes
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #52 on: November 23, 2014, 10:02:58 AM »
Ok, I can't reproduce any error with that same set of packages and naming the file "base".

I will try with a usb boot tonight when I get in, but if it imported fine after a reboot it may have been a fluke.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #53 on: December 07, 2014, 07:46:17 AM »
It was suggested to me by JLS that updatesce only update an sce if there are updates available, and that makes sense though it was going to be a big code change which is why I left it for after the last changes were stabilized.   So far here are the concepts I have working on my box.  Updatesce has a -c option that will simply check if an sce has updates available and state if it does or not, placing the details in a file in /tmp if one wants specifics. 

Below will check if iceweasel has updates available and not update even if there are:
updatesce -c iceweasel

Below will update iceweasel if there are updates available:
updatesce iceweasel

Below will update any of the existing sces in the sce directory:
updatesce all

Below will simply let you know what has updates available
updatesce -c all

Below will bring up a menu to either just check or check and update a selection if updates are available:
updatesce -c
updatesce

Also, importsce has a new option "-u" or "use existing debinx"  that will not fetch  new Packages/debinx files from the main or extra repos.  A big time saver when importing several things over a short time period not having to wait on fetched Packages files.  Updatesce by default fetches new Packages/debinx files since the purpose is to check for new updates.  This may also help with stability across multiple sces as the same debs are used though updates startup scripts and data files are fetched each import.

Extra repo debinx files will now be stored in the /etc/sysconfig/tcedir directory as to not have to be imported each time if one chooses not to.  If a deb is no longer available, importsce stops and lets you know so you can either choose from available debs or simply choose to reimport with new debinx data.

Also, importupdatecheck is no longer a standalone utility but rather called by updatesce and will be in base.  "updatesce -c" is the new importupdatecheck once the changes are uploaded to a new release candidate cut.

Let me know if this sounds like a plan.
 

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11330
Re: One command update of the sce directory.
« Reply #54 on: December 07, 2014, 08:59:02 AM »
Hi Jason W
Quote
Below will update any of the existing sces in the sce directory:
updatesce all

Below will simply let you know what has updates available
updatesce -c all
Just wondering, but since you are using   all   as a keyword, wouldn't it make sense to precede it with a  -  or  -- ? What happens if
you encounter a package called  all ?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #55 on: December 07, 2014, 09:15:49 AM »
Good point, parsing  the command line for --all.  It would have to be double dash "--" and separate from the other options since the GETOPTS options can only be one letter as far as I know.  Either way, yeah, we will make it something other than a non-dashed word.

Also, I think the "importsce -u" should perhaps be to update the debinx while "importsce -p" would preserve existing, seems to sound more logical and the -p option is not taken yet.

Please anyone bring up any ideas or changes as the best time for that is now and  I will hold off a few days after I make sure things are working right before uploading a release candidate as I am sure there will be ways to streamline or adjust things.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #56 on: December 09, 2014, 11:51:29 AM »
Everything seems to be in place and working as expected, I will test some more tonight and hopefully upload the results.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: One command update of the sce directory.
« Reply #57 on: December 09, 2014, 01:43:51 PM »
hi jason,

i'm looking forward...

keep on hacking :)


Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: One command update of the sce directory.
« Reply #58 on: December 10, 2014, 11:23:49 AM »
hi jason,

did you notice that after a fresh update of a package-list and a reboot with loading the new package-list.sce,
afterwards the tool importupdatecheck still reports that these fresh downloaded packages would need an update?

this happens also after a reboot, that means although all packages in the new sce are up-to-date,
importupdatecheck still thinks that these packages need an update.

thank you for your help.
« Last Edit: December 10, 2014, 01:25:41 PM by netnomad »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #59 on: December 10, 2014, 06:32:28 PM »
Ok, there are lots and lots of changes in the new updatesce/importupdatecheck I hope to upload soon.  The existing importupdatecheck extension is surely broken by now, I would wait to do any testing until the new stuff is uploaded.