Using bzr for packaging - RFC: bzr unpack

Daniel Holbach daniel.holbach at
Fri Jul 13 10:53:47 BST 2007

Hello everybody,

after a good discussion with Alexander Sack and Michael Vogt, I hacked a
bit on a tool called bzr unpack. It's going to help with debian/
packging in bzr. What it does is in a debian/ packaging branch:

      * get the tarball
      * unpack the complete source tree in /tmp/something
      * open a subshell
      * lets you make changes to it
      * once you leave the subshell, it will apply the changes to your
        debian/ packaging



daniel at lovegood:~/bzr$ bzr branch apparmor
Branched 5 revision(s).
daniel at lovegood:~/bzr$ cd apparmor/
daniel at lovegood:~/bzr/apparmor$ ls -a
.  ..  .bzr  .bzrignore  debian
daniel at lovegood:~/bzr/apparmor$ bzr unpack
Just hit <Ctrl-D> to get your changes applied.

Type 'exit 127' to abort your changes.
daniel at lovegood:/tmp/tmpbiKCA5/apparmor$ vi debian/changelog 
daniel at lovegood:/tmp/tmpbiKCA5/apparmor$ exit
modified debian/changelog
Committed revision 6.
 M  debian/changelog
All changes applied successfully.
Changes have been merged from /tmp/tmpbiKCA5/apparmor.
daniel at lovegood:~/bzr/apparmor$ bzr diff
=== modified file 'debian/changelog'
--- debian/changelog    2007-07-12 20:54:41 +0000
+++ debian/changelog    2007-07-13 09:50:44 +0000
@@ -1,4 +1,4 @@
-apparmor (2.0.1+510.dfsg-0ubuntu22) gutsy; urgency=low
+aaaaaaaaaapparmor (2.0.1+510.dfsg-0ubuntu22) gutsy; urgency=low
   * update isSkippable function in to skip the same files as rc.apparmor.functions (used by the

daniel at lovegood:~/bzr/apparmor$ 


bzr branch:

Please play with it and let me know what you think about it, it's not on
Launchpad yet, as I don't know if the name is going to stay like that
and if it shouldn't go into bzrtools or something else.

I really hope this is going to change how we integrated bzr into our
packaging workflow and will make it easier for new contributors.

Have a nice day,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : 

More information about the ubuntu-devel mailing list