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

Re: mintupdate



Em 2013-12-15 15:34, Steven Chamberlain escreveu:
On 15/12/13 04:22, brunomaximom@openmailbox.org wrote:
Yeah, that's unnecessary.
The program is ported now. What do you wnat? The patch or the package?

Did you patch some existing packaging to produce this?  In that case a
debdiff may be ideal.

Regards,

Hi, I have patched the mintUpdate.py from the mintupdate package.
I renamed the original deb package to mintupdate-mint* and extract it.
About the control file I don't know if it's necessary patch it, because the only difference between them it's necessary remove mint-mirrors package from de deps and add gksu or kdesudo.
The mint-common package is necessary, but it doesn't need to be ported.
This new mintupdate package can works on *all*, probably on hurd too.
Here is the link to download the package: http://packages.linuxmint.com/pool/main/m/mintupdate/ (I believe this patch works on the latest packages).
Here is the patch:

--- /home/dharc/Downloads/mintupdate-mint_4.5.6_all/usr/lib/linuxmint/mintUpdate/mintUpdate.py 2013-11-30 00:08:50.000000000 -0200 +++ /home/dharc/Downloads/mintupdate_4.5.6_all/usr/lib/linuxmint/mintUpdate/mintUpdate.py 2013-12-15 16:15:40.125823217 -0200
@@ -41,20 +41,6 @@ try:
 except Exception, detail:
     print detail

-architecture = commands.getoutput("uname -a")
-if (architecture.find("x86_64") >= 0):
-    import ctypes
-    libc = ctypes.CDLL('libc.so.6')
-    libc.prctl(15, 'mintUpdate', 0, 0, 0)
-else:
-    import dl
-    if os.path.exists('/lib/libc.so.6'):
-        libc = dl.open('/lib/libc.so.6')
-        libc.call('prctl', 15, 'mintUpdate', 0, 0, 0)
-    elif os.path.exists('/lib/i386-linux-gnu/libc.so.6'):
-        libc = dl.open('/lib/i386-linux-gnu/libc.so.6')
-        libc.call('prctl', 15, 'mintUpdate', 0, 0, 0)
-
 # i18n
 gettext.install("mintupdate", "/usr/share/linuxmint/locale")

Considering the mint programs are traditional programs, I hope the maintainers from traditional DE like MATE and XFCE use it as replace of gnome-packagekit, this is my intention. :D
What's the next step?
Please, try it by yourselves and look for errors.
Thanks


Reply to: