]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- patch32 - LP#506568 auto/th/poldek-0_30-0_20080820_23_36
authorBartłomiej Zimoń <cactus@pld-linux.org>
Thu, 4 Feb 2010 21:38:36 +0000 (21:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- patch33 - LP#499504
- patch34 - do not info. about amount of transaction space req. but relative to already installed
- rel 36

Changed files:
    poldek-show_only_relative_used_space.patch -> 1.1
    poldek.spec -> 1.392

poldek-show_only_relative_used_space.patch [new file with mode: 0644]
poldek.spec

diff --git a/poldek-show_only_relative_used_space.patch b/poldek-show_only_relative_used_space.patch
new file mode 100644 (file)
index 0000000..4f9976a
--- /dev/null
@@ -0,0 +1,89 @@
+diff --git a/pkgfetch.c b/pkgfetch.c
+index 049eb0e..b2cffbd 100644
+--- a/pkgfetch.c
++++ b/pkgfetch.c
+@@ -105,11 +105,6 @@ void packages_fetch_summary(struct pm_ctx *pmctx, const tn_array *pkgs,
+             msgn(1, _("_ (%s to download)."), buf);
+         }
+         
+-        if (bytesused) {
+-            char buf[64];
+-            snprintf_size(buf, sizeof(buf), bytesused, 1, 1);
+-            msg(1, _("After unpacking %s will be used."), buf);
+-        }
+     }
+     
+     msg(1, "_\n");
+diff --git a/poldek_ts.c b/poldek_ts.c
+index a0dd436..306b492 100644
+--- a/poldek_ts.c
++++ b/poldek_ts.c
+@@ -834,9 +834,10 @@ void poldek__ts_update_summary(struct poldek_ts *ts,
+ void poldek__ts_display_summary(struct poldek_ts *ts)
+ {
+     int ninst = 0, ndep = 0, nrm = 0, npkgs = 0, parseable = 0;
++    long sinsts = 0, sdeps = 0, srems = 0, sdiff = 0;
+     tn_array *ipkgs, *idepkgs, *rmpkgs, *pkgs;
+-    char ms[1024], *to, *prefix;
+-    int n;
++    char ms[1024], *to, *prefix, *take;
++    int i, n;
+     
+     ipkgs = n_hash_get(ts->ts_summary, "I");
+     idepkgs = n_hash_get(ts->ts_summary, "D");
+@@ -846,16 +847,36 @@ void poldek__ts_display_summary(struct poldek_ts *ts)
+     ndep  = idepkgs ? n_array_size(idepkgs) : 0;
+     nrm   = rmpkgs ? n_array_size(rmpkgs) : 0;
+-    to = _("to install");
+-    prefix = "I";
+-    pkgs = ipkgs;
+-    npkgs = ninst + ndep;
+-    
+-    if (ts->type == POLDEK_TS_UNINSTALL) {
++    if (ipkgs)
++      for (i=0; i < n_array_size(ipkgs); i++) {
++          struct pkg *pkg = n_array_nth(ipkgs, i);
++          sinsts += pkg->size;
++      }
++    if (idepkgs)
++      for (i=0; i < n_array_size(idepkgs); i++) {
++          struct pkg *pkg = n_array_nth(idepkgs, i);
++          sdeps += pkg->size;
++      }
++    if (rmpkgs)
++      for (i=0; i < n_array_size(rmpkgs); i++) {
++          struct pkg *pkg = n_array_nth(rmpkgs, i);
++          srems += pkg->size;
++      }
++
++    if (ts->type != POLDEK_TS_UNINSTALL) {
++        to = _("to install");
++        prefix = "I";
++        pkgs = ipkgs;
++        npkgs = ninst + ndep;
++        take = _("take");
++        sdiff = sinsts + sdeps - srems;
++    } else {
+         to = _("to remove");
+         prefix = "R";
+         pkgs = rmpkgs;
+         npkgs = nrm + ndep;
++        take = _("free");
++        sdiff = sdeps + srems;
+         nrm = 0;
+     }
+     n_assert(pkgs);
+@@ -896,6 +917,12 @@ void poldek__ts_display_summary(struct poldek_ts *ts)
+         if (rmpkgs)
+             packages_display_summary(1, "R", rmpkgs, parseable);
+     }
++
++    if (sdiff) {
++      char size[64];
++        snprintf_size(size, sizeof(size), abs(sdiff), 1, 1);
++        msgn(1, _("This operation will %s %s of disk space."), take, size);
++    }
+ }
+ tn_array *poldek_ts_get_summary(const struct poldek_ts *ts, const char *mark)
index 74aa7eb9e4385d1ede3b35da0617545db146f46f..16a5c7ef9896ccfdd98b7f6b3d8e0b213599a4e8 100644 (file)
@@ -15,7 +15,7 @@
 %define        ver_rpm 4.5-5
 #
 %define                snap    20080820.23
-%define                rel             35
+%define                rel             36
 Summary:       RPM packages management helper tool
 Summary(pl.UTF-8):     Pomocnicze narzędzie do zarządzania pakietami RPM
 Name:          poldek
@@ -68,6 +68,9 @@ Patch28:      %{name}-score-reqs-marked-to-install.patch
 Patch29:       %{name}-dont-be-greedy.patch
 Patch30:       %{name}-dont-lose-deps.patch
 Patch31:       %{name}-ls-queryfmt.patch
+Patch32:       %{name}-prepare_url_fix.patch
+Patch33:       %{name}-noloop_on_terminal_loos.patch
+Patch34:       %{name}-show_only_relative_used_space.patch
 URL:           http://poldek.pld-linux.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -215,7 +218,7 @@ Moduły języka Python dla poldka.
 %patch22 -p0
 %patch23 -p1
 %patch24 -p1
-# LP#392984
+# LP#392984: add source rpm to ls
 %patch25 -p1
 # LP#408036
 %patch26 -p1
@@ -226,8 +229,15 @@ Moduły języka Python dla poldka.
 # dont be greedy if upgraded pkg has needed capabilities
 %patch29 -p1
 # http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2009-November/150519.html
-%patch30 -p1
+%patch30 -p1 
+# LP#392984: add query format to ls
 %patch31 -p1
+# LP#506568
+%patch32 -p0
+# LP#499504
+%patch33 -p1
+# do not info. about amount of transaction space req. but relative to already installed
+%patch34 -p1
 
 # cleanup backups after patching
 find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
This page took 0.065437 seconds and 4 git commands to generate.