dpkg-prebuilt version naming

6 views
Skip to first unread message

Stephen Ecker

unread,
Jan 29, 2025, 3:53:54 PM1/29/25
to isar-users
Is there a built-in way to have the downloaded prebuilt packages renamed so they follow convention: 

E.g. 
* download somepkg.deb
* Read version 2.4 from file 
* Rename to somepkg_2.4.deb

Thanks

Niedermayr, BENEDIKT

unread,
Jan 30, 2025, 7:14:12 AM1/30/25
to Stephen Ecker, isar-users

Hi Stephen,

you can try to append to the unpack task in the respective recipe:

python do_unpack:append() {

  rename your *.deb

}

or your create a postfunc for that:


do_unpack[postfuncs] += rename

rename() {

  mv ${WORKDIR}/foo.deb ${WORKDIR}/bar.deb

}


Never tested this myself.


Regards,

Benedikt


Thanks
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/CAK9C7GA11RmpT1C76Xi2JovQh1Zz0kAC4c3%3Dmo%2BY6Y8mJhOc9Q%40mail.gmail.com.


Reply all
Reply to author
Forward
0 new messages