Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 28 Jan 2020, 18:54
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
UExtract-3.41
Post new topic   Reply to topic View previous topic :: View next topic
Page 13 of 19 [279 Posts]   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, 16, 17, 18, 19 Next
Author Message
Robert123

Joined: 20 May 2016
Posts: 374
Location: Pacific

PostPosted: Sat 13 Aug 2016, 01:40    Post subject:  

____

Greetings![/quote], Here is a scenario, I'm updating Wary 5.5, Don't know if I'm going to release it or not on here yet,
ttuuxxx[/quote]

Yes please.

_________________
Devuan Linux, Stardust 013 (4.31) updated https://archive.org/details/Stardustpup013glibc2.10
s57(2018)barebonehttps://sourceforge.net/projects/puppy-linux-minimal-builds/files/s57%282018%29barebones.iso/download

Last edited by Robert123 on Sun 14 Aug 2016, 05:58; edited 1 time in total
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1618
Location: The other Mr. 305

PostPosted: Sat 13 Aug 2016, 19:10    Post subject:  

I can't imagine having a Puppy or Quirky without UExtract. It's even smart enough to ask for the password when extracting an encrypted 7zip file.

Thank you for the solid application. It's right up there with the Right Click Tools, in my opinion.

Slavvo67
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1763

PostPosted: Sun 14 Aug 2016, 05:54    Post subject:  

Hi Ttuuxxx & Robert123

Once again - UExtract does not rename anything, it just creates a folder into which extracts the archive, safely and without any conflicts with exising files/dirs.
Let's take an archive without the top-most directory, e.g.:
Code:
touch f1 f2 f3
tar cv f1 f2 f3 -f out.tar
rm f1 f2 f3

Now, try to extract that TAR using Xarchive(r)/Engrampa/PeaZip vs. UExtract and you'll see the difference.

A separate dir per archive is especially helpful when extracting, e.g. DEB packages as they share identically named control files (md5sums, postinst, perm, etc.).
In case of batch extracting each subsequent package would overwrite the previous one's files if there were no separate subdirs.

However, from what I understood, you don't actually have anything against these extra (= being no part of original archive) directories, but only the fact that they inherit input file's extension(s) + '.extracted' suffix.
Currently is: something.tar.gz -> something.tar.gz.extracted
and you'd like it to be: something.tar.gz -> something
even if 'something.tar.gz' archive doesn't contain a toplevel directory named 'something', am I right?

Well, like I said in my previous post this would introduce ambiguity and inconsistencies in some cases.
OTOH, I can understand that it could be indeed time-saving in some scenarios.

Anyway, I've figured out a relatively easy (and probably smart enough to circumvent most of corner cases) way to drop all those extension(s) from output dir.
Just replace line 118 in /usr/local/apps/UExtract/uextract:
Code:
DESTDIR="${CUSTOMDIR}/$(basename "$FILEPATH").$(gettext 'extracted')"

with these 3:
Code:
shopt -s extglob
DESTDIR="${CUSTOMDIR}/$(basename "${FILEPATH%%?($(grep -woE "[^#\"\*\?]\*\..*\)" "$(readlink -f "$0")" | tr -d '\t \*)' | tr '\n' '|'))}")"
shopt -u extglob

It is not well tested, there may be some unforeseen side-effects, so proceed with caution at first.
Give it a spin and let me know if this is really what you want.
I'm very hesitant about including this, though...
___________

Thanks Slavvo67, appreciated.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Robert123

Joined: 20 May 2016
Posts: 374
Location: Pacific

PostPosted: Sun 14 Aug 2016, 06:00    Post subject:  

Understood SFR I just was excited at the prospect of an updated Wary. I have ammended my post to reflect that.
_________________
Devuan Linux, Stardust 013 (4.31) updated https://archive.org/details/Stardustpup013glibc2.10
s57(2018)barebonehttps://sourceforge.net/projects/puppy-linux-minimal-builds/files/s57%282018%29barebones.iso/download
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3519
Location: wales

PostPosted: Sun 14 Aug 2016, 06:18    Post subject:  

hi SFR,

maybe the best thing to do is have a setting so users can turn it on or off to suit their preference

_________________
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5651
Location: Republic of Novo Zelande

PostPosted: Sat 17 Sep 2016, 16:23    Post subject:  

SFR wrote:
UExtract does not rename anything, it _creates_ output directory after the name of an archive that's about to be extracted, adds '.extracted' suffix to it and then unpacks the archive there.

The reason for having a separate extraction directory is to prevent polluting your filesystem with lots of loose files and dirs in case of archives that do not have the top-most directory.!
Initially this behaviour seemed unnecessary but the more I have used uextract the more I have come to value the fact that the extracted files are wrapped in a clearly identified "-extracted" directory.

It has saved me from myself a number of times. I would like it to remain the default behaviour even if an options switch is added to allow the user to change it.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5830
Location: King's Lynn, UK.

PostPosted: Sun 18 Sep 2016, 05:04    Post subject:  

Hi, SFR.

Agree with greengeek, there. The fact of having a separate folder for the extracted files is one of the best things about it.

Since installing don570's 'Right-click' .pet in all my Pups around a year ago (which has UExtract as part of its complement of tricks!), it's all I use now. I can't remember the last time I used XArchiver..!

One question, if I may? I don't know which version of UExtract 'Right-click' is using; if I install your newest .pet, will 'Right-click' then make use of it? Or will it always be a standalone app?

(Not that I mind, either way... Smile )


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1763

PostPosted: Sun 18 Sep 2016, 06:12    Post subject:  

Robert123 wrote:
Understood SFR I just was excited at the prospect of an updated Wary. I have ammended my post to reflect that.

Ok, thanks for clarification.

666philb wrote:
maybe the best thing to do is have a setting so users can turn it on or off to suit their preference

greengeek wrote:
Initially this behaviour seemed unnecessary but the more I have used uextract the more I have come to value the fact that the extracted files are wrapped in a clearly identified "-extracted" directory.

It has saved me from myself a number of times. I would like it to remain the default behaviour even if an options switch is added to allow the user to change it.

Mike Walsh wrote:
Agree with greengeek, there. The fact of having a separate folder for the extracted files is one of the best things about it.

No worries, I don't plan to change the default behaviour.
Maybe I'll add this as an option, but I haven't decided yet.
Besides, not much has been happening lately in UExtract's development, so next version won't be released anytime soon, anyway.

Mike Walsh wrote:
One question, if I may? I don't know which version of UExtract 'Right-click' is using; if I install your newest .pet, will 'Right-click' then make use of it? Or will it always be a standalone app?

You can check the version by simply issuing uextract command in terminal:
Code:
# uextract

UExtract v3.25 by SFR'2013-2016; GNU GPL v2 applies
...

UExtract has always been (and will be) a standalone app, but if you install newer version it should overwrite the previous one.
Its ROX "right-clicks" are part of it, although I'm not sure if Don570 makes use of the provided 'pinstall.sh' script that takes care of creating them, or uses his own method in his suite...

Thank you all for the feedback &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5457
Location: Ontario

PostPosted: Mon 19 Sep 2016, 18:28    Post subject:  

Quote:

I'm not sure if Don570 makes use of the provided 'pinstall.sh' script that takes care of creating them, or uses his own method in his suite...



I stick about five lines of your pinstall.sh script in my pinstall.sh script
at the end.

I'll do an update of the right click utility package to uextract 325

____________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5457
Location: Ontario

PostPosted: Sat 24 Sep 2016, 16:32    Post subject:  

uextract 3.25 report from barry's newest...

There is no right click menu item for Barry's compressed image.

quirky-pi2-sd-8gb-xerus-8.0.18alpha.img.xz

_____________________________________
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1763

PostPosted: Sun 25 Sep 2016, 08:25    Post subject:  

don570 wrote:
uextract 3.25 report from barry's newest...

There is no right click menu item for Barry's compressed image.

quirky-pi2-sd-8gb-xerus-8.0.18alpha.img.xz

Yes, it's because that image is not seen as regular application/x-xz, but application/x-raw-disk-image-xz-compressed.
I'll add this MIME type in next version, thanks.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Robert123

Joined: 20 May 2016
Posts: 374
Location: Pacific

PostPosted: Mon 26 Sep 2016, 02:21    Post subject:  

Hi SFR,

I look forward to the next version bloody good program.

_________________
Devuan Linux, Stardust 013 (4.31) updated https://archive.org/details/Stardustpup013glibc2.10
s57(2018)barebonehttps://sourceforge.net/projects/puppy-linux-minimal-builds/files/s57%282018%29barebones.iso/download
Back to top
View user's profile Send private message 
quirkian2new

Joined: 06 Oct 2015
Posts: 140
Location: on the inter-planet train

PostPosted: Sat 01 Oct 2016, 10:03    Post subject:  

Hello, SFR,

For some reason, i downloaded the windows version of mtpaint, "mtpaint-3.40-setup.exe" and dropped into Uextract v3.25.
The extract process failed.

I loaded WINE and then run the "Universal Extractor (v1.6.1 R7)
==================================================
Portable application customized for Lupo PenSuite"
http://www.lupopensuite.com/
Original Software:
http://www.legroom.net/software/uniextract
=========================================

This windows extractor did it successfully in WINE. see below screens.

my impression seems that this windows extractor have more chance of success extracting the windows xxx-setup.exe files .

My impression right or wrong, i don't know, you decide.
Screenshot(1).jpg
 Description   
 Filesize   21.75 KB
 Viewed   161 Time(s)

Screenshot(1).jpg

Back to top
View user's profile Send private message 
quirkian2new

Joined: 06 Oct 2015
Posts: 140
Location: on the inter-planet train

PostPosted: Sat 01 Oct 2016, 10:05    Post subject:  

screen1
Screenshot.jpg
 Description   
 Filesize   23.64 KB
 Viewed   155 Time(s)

Screenshot.jpg

Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1763

PostPosted: Sat 01 Oct 2016, 11:37    Post subject:  

quirkian2new wrote:
For some reason, i downloaded the windows version of mtpaint, "mtpaint-3.40-setup.exe" and dropped into Uextract v3.25.
The extract process failed.

Well, UExtract unpacks exe files via p7zip, so if the latter can't handle it, neither can UExtract (it's only a wrapper script after all).
In this particular case we're dealing with exe created with Inno Setup installer.
But there's a native Linux unpacker for such files: http://constexpr.org/innoextract/, so I think I'll add support for it in next version.
Thanks for drawing my attention to that.
___________

Robert123 wrote:
I look forward to the next version bloody good program.

Thanks. It will take a while yet, though...

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 13 of 19 [279 Posts]   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, 16, 17, 18, 19 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1119s ][ Queries: 12 (0.0398s) ][ GZIP on ]