[Rpm-maint] [rpm-software-management/rpm] rpmuncompress: Support -C for zip and 7zip archives (PR #3263)

Florian Festi notifications at github.com
Fri Aug 30 09:57:59 UTC 2024


@ffesti commented on this pull request.



>  	    rasprintf(&stripcd, " -C '%s' %s", dstpath, sr ? "--strip-components=1" : "");
+	else {
+	    char * moveup;
+	    if (sr)
+		/* rename top dir to tmp name to avoid collisions */
+		/* then move files within one level up */
+		rasprintf(
+		    &moveup,
+		    " && "
+		    "tmp=`mktemp -u -p'%s'` && "
+		    "mv %s/%s $tmp && "

Done.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3263#discussion_r1738345399
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3263/review/2271811865 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240830/20e4f5f4/attachment.html>


More information about the Rpm-maint mailing list